Wrong cursor position after using same file in two panels
See original GitHub issueIs this a BUG REPORT or FEATURE REQUEST? (choose one):
It’s a bug report
What happened:
- Open same file in two panels (i.e. side by side) with vim mode enabled
- At one buffer (A) jump to line 10
- At second buffer (B) click at line 20
- Get back to buffer A (at this point we are at line 10) and hit
j
(for vim “down by line” move) - I am taken to line 21
What did you expect to happen:
At point 5 I should be taken to line 11.
How to reproduce it (as minimally and precisely as possible):
I’ve described it at the What happened section. Here is a video.
Environment:
- Extension (VsCodeVim) version: 0.12.0
- VSCode version: 1.23.1
- OS version: 10.13.2 (17C88)
Update
Seems like reverting one change helped. I’ve created a PR.
For v0.14+ fix please see the comment
Issue Analytics
- State:
- Created 5 years ago
- Reactions:38
- Comments:19 (12 by maintainers)
Top Results From Across the Web
Vim cursor highlights wrong position - Unix Stack Exchange
While I was editing a file, suddenly the cursor marker moved one or more spaces to the right while the cursor actions still...
Read more >Mouse cursor on screen shifted up and to the left - Dell
The cursor shows up about one cursor width to the left and above the location where the mouse actuates. The behavior is consistent...
Read more >vmmouse cursor position doesn't match screen coordinates
Steps to Reproduce: 1. update a vmware image using vmmouse driver to at least 22-Feb-08 2.Observe disconnected cursor position 3.
Read more >Mouse cursor offset on external monitors - Citrix Discussions
I have one user that when he launches a Citrix application the mouse cursor is offset. ... He is running a laptop with...
Read more >Open Panel (files / folders) and Insert a File at Cursor Position
C-x i has filename completion. Which means you can use the exact same keystrokes to insert a file as to visit it with...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @chibicode. For folks following this issue, please thumbs upstream vscode issue!
Seems this would be fixed in near future but it still breaks at 0.14. Here is a diff one can use to fix the issue (but note that this will bring back another issue with undo).
you can apply it with
patch -p0 < FILENAME
at~/.vscode/extensions/vscodevim.vim-0.14.0/
Updated patch for 0.16: