# Fix relative line numbers in vim visual mode · gitcafe/zed

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

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

Visibility: public

Requested revision: f18cdcba546f0965aa2708324064e4639c46eac5

Requested commit: f18cdcba546f0965aa2708324064e4639c46eac5

Commit: f18cdcba546f0965aa2708324064e4639c46eac5

Tree: aa775245c381a95f08885a5b81a6403fd6411fde

Author: Conrad Irwin

Committer: Conrad Irwin

## Message

```
Fix relative line numbers in vim visual mode

In visual mode when your selection ends with a newline we show the
cursor at the end of the previous line (not the start of the current
line). We had only been accounting for this if the cursor was on-screen.

```

## Parents

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

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