VSCodeVim / VSCodeVim/Vim

Adding a cursor in multi-cursor mode does not scroll the window

Open
#3,001 13 comments 10 reactions 1 assignee View on GitHub

@J-Fields is already working on this.

Since Jan 18, 2020.

area/multicursor
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:

  1. write a file with a lot of identical lines
foo
foo
foo
...
  1. go on a "foo"
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.