You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On vertical split mode with 2 windows, cursor doesn't show in the line immediately below when the command o is given or immediately above when O is given. This happens when one of the lines is spanning the whole horizontal space while at the same time line count is going from 99 to 100 (as a result of o). This happens when the window is either at the left side or right side in vertical split. It does not occur when there is only one window(no vertical split).
Detailed steps to reproduce the behavior:
Run vim --clean (or gvim --clean, etc.)
Enter :set number and :set numberwidth=2
Edit file1
Fill the file with 99 lines
Use :vsp file2 to vertically split the window (content of file2 is irrelevant)
In file1, fill one of the lines up to the point where the line is spanning the whole horizontal space(vertical split bar will be the bound)
In file1 hit o or O. Cursor will be on the wrong place. When started typing, it writes correctly.
Expected behavior
Cursor being on the correct place, the line immediately below (or above).
Screenshots hit o (cursor is on 2) start typing
Environment
Vim version 8.0.1453(Ubuntu) and version 8.0.1283(macOS)
Edit: reproducable in version 8.1.1161
OS: Ubuntu 18.04 and macOS 10.14.4
Terminal: Apple Terminal App
Additional context
Basically, key points of the bug are:
Vertical split
numberwidth=2
line count going from 99 to 100
one long line about to overflow to 2 lines
The text was updated successfully, but these errors were encountered:
9 lines are enough, I think what matters is the change of number of columns needed for line numbering
does not happen when numberwidth is larger than number of columns required for numbering after the new line (e.g. for change 9->10 lines does not happen with numberwidth > 2, for 99->100 with numberwidth > 3), as the number of columns for numbering does not change
On vertical split mode with 2 windows, cursor doesn't show in the line immediately below when the command o is given or immediately above when O is given. This happens when one of the lines is spanning the whole horizontal space while at the same time line count is going from 99 to 100 (as a result of o). This happens when the window is either at the left side or right side in vertical split. It does not occur when there is only one window(no vertical split).
Detailed steps to reproduce the behavior:
vim --clean
(orgvim --clean
, etc.):set number
and:set numberwidth=2
file1
:vsp file2
to vertically split the window (content offile2
is irrelevant)file1
, fill one of the lines up to the point where the line is spanning the whole horizontal space(vertical split bar will be the bound)file1
hit o or O. Cursor will be on the wrong place. When started typing, it writes correctly.Expected behavior
Cursor being on the correct place, the line immediately below (or above).
Screenshots
hit o (cursor is on
2
)start typing
Environment
Edit: reproducable in version 8.1.1161
Additional context
Basically, key points of the bug are:
The text was updated successfully, but these errors were encountered: