# Avoid panic by accessing view handle by global in wrong window · gitcafe/zed

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

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

Visibility: public

Requested revision: fc9687d16334ac33f482630f9a9330bc24bd8edb

Requested commit: fc9687d16334ac33f482630f9a9330bc24bd8edb

Commit: fc9687d16334ac33f482630f9a9330bc24bd8edb

Tree: ce9f2dfb780d0769fba887309bcce68a42e20181

Author: Julia

Committer: Julia

## Message

```
Avoid panic by accessing view handle by global in wrong window

View handles are window specific but this global will be doing things
in all windows, that would cause a panic when it attempted to update
a status bar mode indicator in a background window

Co-Authored-By: Mikayla Maki <mikayla@zed.dev>

```

## Parents

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

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