mirror of
https://github.com/neovim/neovim.git
synced 2025-10-10 11:56:30 +00:00
vim-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: vim/vim#18506
a084914361
This commit is contained in:
@@ -62,8 +62,7 @@ int coladvance_force(colnr_T wcol)
|
||||
curwin->w_valid &= ~VALID_VIRTCOL;
|
||||
} else {
|
||||
// Virtcol is valid
|
||||
curwin->w_valid |= VALID_VIRTCOL;
|
||||
curwin->w_virtcol = wcol;
|
||||
set_valid_virtcol(curwin, wcol);
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
@@ -83,8 +82,7 @@ int coladvance(win_T *wp, colnr_T wcol)
|
||||
wp->w_valid &= ~VALID_VIRTCOL;
|
||||
} else if (*(ml_get_buf(wp->w_buffer, wp->w_cursor.lnum) + wp->w_cursor.col) != TAB) {
|
||||
// Virtcol is valid when not on a TAB
|
||||
wp->w_valid |= VALID_VIRTCOL;
|
||||
wp->w_virtcol = wcol;
|
||||
set_valid_virtcol(curwin, wcol);
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
|
Reference in New Issue
Block a user