# Fix panic when opening multiple definitions in a multibuffer · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/121264d35a4e7c1dc095baac96b40cd15d5f8510)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 121264d35a4e7c1dc095baac96b40cd15d5f8510

Requested commit: 121264d35a4e7c1dc095baac96b40cd15d5f8510

Commit: 121264d35a4e7c1dc095baac96b40cd15d5f8510

Tree: 1a739b701670f3789b965db733a2b3adc6b1830c

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Fix panic when opening multiple definitions in a multibuffer

The editor is on the stack, so adding an item to the `Pane` containing
the editor will cause a double borrow and a consequent panic. This
commit fixes the issue by deferring the opening of the definitions.

```

## Parents

- [7e2a46148699246eac56192334daa88d9f5850a5](https://git.cafe/gitcafe/zed/commit/7e2a46148699246eac56192334daa88d9f5850a5?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/121264d35a4e7c1dc095baac96b40cd15d5f8510?format=markdown)
