Closed
Description
Describe the bug
SHIFT+O does not work properly when used on the top line of the buffer and the top line wraps to occupy two or more screen lines. It clears the top screen line instead of shifting it down. Undo does not work properly after that command.
To Reproduce
Detailed steps to reproduce the behavior:
- Run
mvim --clean
- Type in any placeholder text to make the top line occupy multiple screen lines. Add one or two more logical lines as well to see the Undo corruption in steps 5 & 6.
- Escape to command mode. With the cursor on the top line, press SHIFT+O.
- The top screen line will clear instead of shifting down.
- Press
ESCAPE
and thenu
to undo. - The top line is restored but one or more lines under it disappears. The number of following lines that disappear is equal to the number of screen lines that the top line occupies, minus one.
Expected behavior
SHIFT+O should work a long top line the same as on any other line. Note: this bug does not occur on the previous release, 8.2.539.
Environment
- Vim 8.2.1456
- macOS 10.15.5
Metadata
Metadata
Assignees
Labels
No labels