# vim: Add repeat support for add_surround \(\#14746\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7d30175527b0a588e6414f6bb562fb9d25c3c9ef

Requested commit: 7d30175527b0a588e6414f6bb562fb9d25c3c9ef

Commit: 7d30175527b0a588e6414f6bb562fb9d25c3c9ef

Tree: 7b977a11a84164a52f31431074d6aaa2313969b3

Author: Hans

Committer: GitHub

## Message

```
vim: Add repeat support for add_surround (#14746)

Fix: #14242

At present, we don't trigger the method `start_recording(cx)` to start
recording when typing add_surround, so it can't be repeated well, delete
and change actually don't increase, but when entering `d` and `c`, it
happens that these two operations are recorded, I think maybe we also
need to call `start_recording(cx)` when calling delete_surround and
change_surround, otherwise when the user modifies their shortcuts, these
two functions may not be supported by repeat

Release Notes:

- N/A
```

## Parents

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

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