Normal mode commands H and L no longer accepts a number before the command
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
Describe the bug
When in normal mode, the commands H and L do not honor numbers entered before the command
To Reproduce
- Go to normal mode
- Press
6followed byH
Same goes for the L command
Expected behavior
The cursor should go to the 6th line below the top of the current screen, and should not scroll.
** Actual behavior**
The cursor goes to the line that was at the top of the screen, and scrolls up.
Environment (please complete the following information):
- Extension (VsCodeVim) version:
- VSCode version: 1.94.0
- OS: Mac and Linux
Additional context
N/A
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
Start by tracing normal-mode handling for the H and L commands and how numeric prefixes are passed to them. Reproduce the issue with 6H and 6L in VSCodeVim, then verify that each command moves the cursor to the corresponding screen line without scrolling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100