# Avoid panic by accessing view handle by global in wrong window \(\#2801\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 17fa15d989a531e53cbf9d371badd10a98429ad1

Requested commit: 17fa15d989a531e53cbf9d371badd10a98429ad1

Commit: 17fa15d989a531e53cbf9d371badd10a98429ad1

Tree: efee1048d49d25f075f201c8d2e2bd49db832121

Author: Mikayla Maki

Committer: GitHub

## Message

```
Avoid panic by accessing view handle by global in wrong window (#2801)

View handles are window specific but the Vim global will be doing things
in all windows, that would cause a panic when Vim attempted to update a
status bar mode indicator in a background window

Release Notes:

- N/A
```

## Parents

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

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

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