mirror of
https://github.com/neovim/neovim.git
synced 2025-10-12 21:06:13 +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#18506a084914361
(cherry picked from commitba47cb7eda
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
e1fe0ed2df
commit
d21c23b8c9
@@ -64,8 +64,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;
|
||||
}
|
||||
@@ -85,8 +84,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