Adding a cursor in multi-cursor mode does not scroll the window
@J-Fields is already working on this.
Since Jan 18, 2020.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
Describe the bug
If you have a long file (longer than one window) and you add cursors with "gb", at some point it will start selecting words that are out of the window.
To Reproduce
Steps to reproduce the behavior:
- write a file with a lot of identical lines
foo
foo
foo
...
- go on a "foo"
- press "gb" multiple times
Expected behavior
Each time I press "gb", a new "foo" should be selected, and when a foo that is out of the window is selected, the window should scroll.
Obtained behavior
The window scrolls the first time only, but when a selection is more than half a window away from the first cursor, the window will focus on the first cursor and "gb" will keep selecting things out of the window.
Environment:
- Extension Name: vim
- Extension Version: 0.16.1
- OS Version: Linux x64 4.17.0-1-amd64
- VSCode version: 1.26.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.