VSCodeVim / VSCodeVim/Vim

Smart Relative Line loses state when changing tabs

Open
#6,993 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/bug
Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Describe the bug
If another tab gets focus and it's on a different Vim mode, line mode becomes wrong.

To Reproduce
Steps to reproduce the behavior:

  1. Open two new tabs and add some empty lines to them
  2. Leave first tab on normal mode, second tab on insert mode
  3. Change from first to second tab (Ctrl+PgDown)

Expected behavior
Line mode should be absolute, but it is relative

Screenshots
gif

Environment (please complete the following information):

  • Extension (VsCodeVim) version: v1.21.6
  • VSCode version / OS:
Version: 1.58.2 (system setup)
Commit: c3f126316369cd610563c75b1b1725e0679adfb3
Date: 2021-07-14T22:10:15.214Z
Electron: 12.0.13
Chrome: 89.0.4389.128
Node.js: 14.16.0
V8: 8.9.255.25-electron.0
OS: Windows_NT x64 10.0.19042

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in VSCodeVim by opening two tabs, leaving them in different Vim modes, and switching tabs with Ctrl+PgDown. Trace how tab changes update Vim mode and line mode state; done when switching to the insert-mode tab preserves absolute line mode as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.