# Defer pane interaction when opening excerpts in diagnostics view · gitcafe/zed

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

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

Visibility: public

Requested revision: e61a5b172cc1f6c2ff9e1b5ad65a9c85828bdd61

Requested commit: e61a5b172cc1f6c2ff9e1b5ad65a9c85828bdd61

Commit: e61a5b172cc1f6c2ff9e1b5ad65a9c85828bdd61

Tree: 31ad009c1841dc1daad4981220d8c306bf2acfd2

Author: Nathan Sobo

Committer: Nathan Sobo

## Message

```
Defer pane interaction when opening excerpts in diagnostics view

Activating a new item causes the current item to be deactivated. We're the current item, but we're on the stack, so we panic if we try to do this synchronously. If we use defer to wait until we're off the stack it works.

```

## Parents

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

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