# Fix bug where vim commands were copied on each update_matches · gitcafe/zed

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

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

Visibility: public

Requested revision: d0dbf8e1e269ae46ae456cf2485b70011134b8b7

Requested commit: d0dbf8e1e269ae46ae456cf2485b70011134b8b7

Commit: d0dbf8e1e269ae46ae456cf2485b70011134b8b7

Tree: 43a9a4d3a736dc241306d48915cbc0bdbe5b41ae

Author: Conrad Irwin

Committer: Conrad Irwin

## Message

```
Fix bug where vim commands were copied on each update_matches

In zed1, the array of commands was recalculated on every update_matches,
In zed2 it's cached before we change the focus.

```

## Parents

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

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