mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 07:16:09 +00:00
vim-patch:8.2.4795: 'cursorbind' scrolling depends on whether 'cursorline' is set
Problem: 'cursorbind' scrolling depends on whether 'cursorline' is set.
Solution: Always call validate_cursor(). (Christian Brabandt, closes vim/vim#10230,
closes vim/vim#10014)
2c645e8b00
This commit is contained in:
@@ -2279,9 +2279,7 @@ void do_check_cursorbind(void)
|
||||
int restart_edit_save = restart_edit;
|
||||
restart_edit = true;
|
||||
check_cursor();
|
||||
if (win_cursorline_standout(curwin) || curwin->w_p_cuc) {
|
||||
validate_cursor();
|
||||
}
|
||||
validate_cursor();
|
||||
restart_edit = restart_edit_save;
|
||||
}
|
||||
// Correct cursor for multi-byte character.
|
||||
|
Reference in New Issue
Block a user