patch 9.1.1836: 'culopt' "screenline" not redrawn with line("w0") and :retab

Problem:  'cursorlineopt' "screenline" isn't redrawn when moving cursor
          and then using line("w0") and :retab that does nothing.
Solution: Call redraw_for_cursorcolumn() when setting a valid w_virtcol
          (zeertzjq).

closes: #18506

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2025-10-07 20:53:48 +00:00
committed by Christian Brabandt
parent 474b981e40
commit a084914361
7 changed files with 39 additions and 10 deletions

View File

@ -7077,7 +7077,7 @@ set_fraction(win_T *wp)
* calculate the new scroll position.
* TODO: Ensure this also works with wrapped lines.
* Requires a not fully visible cursor line to be allowed at the bottom of
* a window("zb"), probably only when 'smoothscroll' is also set.
* a window ("zb"), probably only when 'smoothscroll' is also set.
*/
static void
win_fix_scroll(int resize)