# Fix jumping to definition in a new file \(\#2803\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ade8d4d167b0670e764564969e5bd24da136d77a

Requested commit: ade8d4d167b0670e764564969e5bd24da136d77a

Commit: ade8d4d167b0670e764564969e5bd24da136d77a

Tree: 1600c4472e3c02f5b9687dc85df4d075a31666ad

Author: Conrad Irwin

Committer: GitHub

## Message

```
Fix jumping to definition in a new file (#2803)

This is broken because vim currently sets settings only on the active
editor. Fix this by correcting the range on the currently active editor.

It would be nice (at some point) to refactor how vim sets settings, but
that's for another day.

Release Notes:

- vim: Fix bug when jumping to definition in new file accidentally
entered visual mode.
```

## Parents

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

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

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