Vim icon indicating copy to clipboard operation
Vim copied to clipboard

Cursor moves to a wrong location when selecting lines in visual block mode

Open tusharsnx opened this issue 1 year ago • 0 comments

Describe the bug Cursor moves to the wrong location in the previous/next row in Visual-Block mode.

To Reproduce Steps to reproduce the behavior:

  1. Paste a sample text into the editor:
"djdjdjdjdddddddddddddd"
"djdjdjdjdddddddddddddddjjddj"
"djdjdjdjdddddddddddddddjdjdjddjdj"
"djdjdjdjdddddddddddddddjdjdjdjdjdjdjdj"
"djdjdjdjdddddddddddddddjdjdjdjdjdjdjdjjddjjd"
  1. Place the cursor on the first line first column.
  2. Switch to Visual-Block mode.
  3. Start selecting down the rows.
  4. The cursor is at a location that vertically aligns with the end of the previous line.

https://github.com/user-attachments/assets/550664f9-a2cb-44ba-a332-9c6e2d8d260d

Expected behavior

https://github.com/user-attachments/assets/aed1d3c1-5129-4065-9a07-c54667d6ad24

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.27.3
  • VSCode version: 1.91.1
  • OS: Win 24H2

Additional context Last known good version: 1.27.1

tusharsnx avatar Jul 25 '24 06:07 tusharsnx