Vim icon indicating copy to clipboard operation
Vim copied to clipboard

Cursor position incorrect after jumping to a global mark

Open basepi opened this issue 3 years ago • 0 comments

Describe the bug When I navigate to an uppercase (global) mark in another file, vscode opens the file but does not set the cursor position correctly. (The cursor stays in its previous position.) Navigating to the mark a second time fixes the issue.

To Reproduce Steps to reproduce the behavior:

  1. Set an uppercase mark in a file (with mA for example)
  2. Move the cursor to another line in the file
  3. Open a different file
  4. Navigate to the mark (with 'A for example)

Expected behavior The cursor should move to the marked line on the first invocation.

Screenshots

https://user-images.githubusercontent.com/702318/191124071-4d0f3848-405e-49f4-a77b-2f6f7fec4173.mov

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.23.2
  • VSCode version: 1.71.2
  • OS: macOS 12.6

basepi avatar Sep 19 '22 21:09 basepi