# syntax_tree_view: Fix highlights persisting after view was closed \(\#47638\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 3b5443ba9698016a9831c22943a71d6fdc3cf04f

Requested commit: 3b5443ba9698016a9831c22943a71d6fdc3cf04f

Commit: 3b5443ba9698016a9831c22943a71d6fdc3cf04f

Tree: 8cf509989e6682359fd8a1ccee64da01012301b1

Author: Finn Evers

Committer: GitHub

## Message

```
syntax_tree_view: Fix highlights persisting after view was closed (#47638)

Also ensured that we clear only the highlights of the current view
(which probably would have been the the case almost always anyway).

Release Notes:

- Fixed a small issue where highlights of the syntax tree view would
persist after the view was closed.
```

## Parents

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

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