# Fix flickering when interacting with the language server logs \(\#9390\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 5ae145145e0cd4cd7a831ee5f42a51cb2d4ca099

Requested commit: 5ae145145e0cd4cd7a831ee5f42a51cb2d4ca099

Commit: 5ae145145e0cd4cd7a831ee5f42a51cb2d4ca099

Tree: 7cbda5aac75d70b74d754a56911111511f2e8491

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Fix flickering when interacting with the language server logs (#9390)

Fixes https://github.com/zed-industries/zed/issues/9340

The flickering was caused by the pane trying to restore focus on a
`FocusHandle` that wasn't being rendered anymore. This commit uses the
new `WeakFocusHandle` to avoid retaining a reference to focus handles
that don't exist anymore.

Release Notes:

- Fixed a bug that caused flickering when interacting with the language
server logs
([#9340](https://github.com/zed-industries/zed/issues/9340)).
```

## Parents

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

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