forked from aniani/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 #10230, closes #10014)
This commit is contained in:
committed by
Bram Moolenaar
parent
4c84dd33ad
commit
2c645e8b00
@@ -2918,10 +2918,7 @@ do_check_cursorbind(void)
|
||||
restart_edit_save = restart_edit;
|
||||
restart_edit = TRUE;
|
||||
check_cursor();
|
||||
# ifdef FEAT_SYN_HL
|
||||
if (curwin->w_p_cul || curwin->w_p_cuc)
|
||||
validate_cursor();
|
||||
# endif
|
||||
validate_cursor();
|
||||
restart_edit = restart_edit_save;
|
||||
// Correct cursor for multi-byte character.
|
||||
if (has_mbyte)
|
||||
|
Reference in New Issue
Block a user