# Stop unnecessary repeat cursor movements in Vim mode \(\#7641\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e2a3e893187bcf8477e8046b0073c2798e7b1c64

Requested commit: e2a3e893187bcf8477e8046b0073c2798e7b1c64

Commit: e2a3e893187bcf8477e8046b0073c2798e7b1c64

Tree: a974297b5eac0fa6541fcaa2e311893b1625be1e

Author: Colin Cai

Committer: GitHub

## Message

```
Stop unnecessary repeat cursor movements in Vim mode (#7641)

Fixes: #7605

When repeating some cursor movements in Vim mode (e.g. `99999999 w`),
Zed tries to repeat the movement that many times, even if further
actions don't have any effect. This causes Zed to hang.

This commit makes those movements like other actions (like moving the
cursor left/right), stopping the repeat movement if a boundary of the
text is reached/the cursor can't move anymore.

Release Notes:

- Fixed [#7605](https://github.com/zed-industries/zed/issues/7605).
```

## Parents

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

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