Problem: With 'smoothscroll' the scroll position in a long line is lost when
moving to a column with "|".
Solution: Adjust the skipped columns for the column the cursor ends up in,
not for column zero.
related: #20885
There is no issue for this, it was found while auditing the places that
reset w_skipcol, after patch 9.2.0881.
With 'smoothscroll' and a line that is longer than the window, ":norm 240|"
scrolled the window back to the start of the line. "|" moves the cursor to
column zero first and only then to the wanted column, and beginline()
adjusts the skipped columns before that second step.
The screen dumps of Test_smooth_long_scrolloff_* are updated. They were
made with the old behaviour, where resetting the skipped columns and
adjusting them again caused a full redraw that cleared the command line.
The text, the cursor position and the ruler are unchanged; only
":norm j721|" now stays on the command line, as it does after any other Ex
command.
https://github.com/vim/vim/pull/20890
(16 files)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
thanks
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()