In a line with indentation, jumping to mark does not work after inserting a new line above
Open
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
In a line with indentation, jumping to mark (with backtick `) does not work after inserting a new line above
To Reproduce
Steps to reproduce the behavior:
- In a line with 4-space indentation,
mosomewhere in the middle of this line to set a mark ato Oto create a new line above and enter insert modeEscto go back to normal mode`oto go back to marko. It will not go back to marko, instead it will go to a position 4-space to the right of markoin the same line.
Expected behavior
It should go back to the position of mark o
Environment (please complete the following information):
- Extension (VsCodeVim) version: v1.14.5
- VSCode version: 1.46.0
- OS: Windows 10 Pro
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the mark-jump behavior in VSCodeVim using the listed indentation, O, and `o steps. Trace the mark-jumping and line-insertion handling, then verify that jumping to mark o returns to its original position after the new line is inserted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- developer-experience
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100