# vim: Fix cursor adjustment on scroll \(\#2859\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9dab6b6a2077dba3fa8593dd3426632b929b8ba0

Requested commit: 9dab6b6a2077dba3fa8593dd3426632b929b8ba0

Commit: 9dab6b6a2077dba3fa8593dd3426632b929b8ba0

Tree: 29122ef6d1e81cae9b77255fe785d9696b57b6c4

Author: Conrad Irwin

Committer: GitHub

## Message

```
vim: Fix cursor adjustment on scroll (#2859)

Fixes: zed-industries/community#1929

Also preserves visual modes correctly.

[[PR Description]]

Release Notes:

- vim: Fix scroll offset on `ctrl-{e,y,u,b}`
([#1929](https://github.com/zed-industries/community/issues/1929)).
```

## Parents

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

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

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