# editor: Repaint gutter immediately when bookmarks change \(\#62847\) · gitcafe/zed

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

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

Visibility: public

Requested revision: eb96feb80a1f330178ca4616dec308b10d39bd73

Requested commit: eb96feb80a1f330178ca4616dec308b10d39bd73

Commit: eb96feb80a1f330178ca4616dec308b10d39bd73

Tree: 3497acf2f8dd5b232b048655201d1b5e93a36c14

Author: Austin Cummings

Committer: GitHub

## Message

```
editor: Repaint gutter immediately when bookmarks change (#62847)

Closes #61005

The bookmark store notified on every change, but nothing was listening.
Editors only repainted their bookmark icons because the toggle actions
happened to notify the editor directly - so workspace::ClearBookmarks,
which never touches an editor, left stale icons in the gutter until
something else caused a repaint.

Now editors observe the bookmark store, so any change repaints them.
This also fixes toggling a bookmark in one split not updating another
split showing the same file.

Release Notes:

- Fixed bookmarks not disappearing from the gutter immediately when
running `workspace::ClearBookmarks`.
```

## Parents

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

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