`<C-d>` (scroll half page) fails when using word wrap
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
Using vim's ctrl-d command to scroll down within a view with too long of a word-wrapped line fails. The view stutters, as if it is about to go down, but the view remains in the same location.
To Reproduce
Open a new file
Turn word wrapping on. (ctrl/cmd-shift-P toggle word wrap)
Create a long, single line of text ; it should be long enough that the line consumes more than half the height of view.
Press Ctrl-D in normal mode
Expected behavior
I would expect that I can use ctrl-d to scroll through my document.
Environment (please complete the following information):
- Extension (VsCodeVim) version: 1.0.2.
- VSCode version: 1.30.2
- OS: Mac OS X (10.11.6)
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
No source file or test is named. First reproduce the issue in VSCode with word wrap enabled and a single line taller than half the view, then trace the Ctrl-D normal-mode handling and scrolling entry point. Done means Ctrl-D advances through the wrapped line instead of stuttering, with regression coverage if the project’s existing tests support it.
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