VSCodeVim / Vim

:star: Vim for Visual Studio Code
http://aka.ms/vscodevim
MIT License
13.58k stars 1.3k forks source link

Cursor position lost when re-focusing editor and hitting escape #2917

Open mlynch opened 5 years ago

mlynch commented 5 years ago

Describe the bug When the editor window loses focus and is then refocused, upon hitting "escape", the scroll position snaps back to the old position it was at before losing focus. That means when you click back into the editor and hit escape your scroll position snaps back, which is confusing.

To Reproduce Steps to reproduce the behavior:

  1. Open file
  2. Split file vertically (not necessary but helps test)
  3. Open new file on one side
  4. Focus new file
  5. Focus back to old file using mouse
  6. Hit escape

Notice the cursor goes back to the old position rather than staying at the current position.

Expected behavior Cursor does not change after hitting escape

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Evlos commented 5 years ago

+1 It really annoys me.

JLucky commented 2 years ago

+1