Vim
Vim copied to clipboard
Cursor moves to a wrong location when selecting lines in visual block mode
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:
- Paste a sample text into the editor:
"djdjdjdjdddddddddddddd"
"djdjdjdjdddddddddddddddjjddj"
"djdjdjdjdddddddddddddddjdjdjddjdj"
"djdjdjdjdddddddddddddddjdjdjdjdjdjdjdj"
"djdjdjdjdddddddddddddddjdjdjdjdjdjdjdjjddjjd"
- Place the cursor on the first line first column.
- Switch to Visual-Block mode.
- Start selecting down the rows.
- 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