1
0
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:
Christian Brabandt
2022-04-20 14:52:01 +01:00
committed by Bram Moolenaar
parent 4c84dd33ad
commit 2c645e8b00
8 changed files with 92 additions and 10 deletions

View File

@@ -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)