# editor: Ensure completion menu scrollbar does not become stale \(\#44536\) · gitcafe/zed

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

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

Visibility: public

Requested revision: dd431631b43ce33bd21494122ab74db691fec549

Requested commit: dd431631b43ce33bd21494122ab74db691fec549

Commit: dd431631b43ce33bd21494122ab74db691fec549

Tree: 94341541394e2fb718b094426d996292eacaf575

Author: Finn Evers

Committer: GitHub

## Message

```
editor: Ensure completion menu scrollbar does not become stale (#44536)

Only by reusing the previous scroll handle, we can ensure that both the
scrollbar remains usable and also that the scrollbar does not flicker.
Previously, the scrollbar would hold the reference to an outdated
handle.

I tried invalidating the handle the scrollbar uses, but that leads to
flickering, which is worse. Hence, let's just reuse the scrollbar here.

Release Notes:

- Fixed an issue where the scrollbar would become stale in the code
completions menu after the items were updated.
```

## Parents

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

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