diff src/move.c @ 28542:51b5cab35afa v8.2.4795

patch 8.2.4795: 'cursorbind' scrolling depends on whether 'cursorline' is set Commit: https://github.com/vim/vim/commit/2c645e8b00641f504072f35e061b7392ed41f491 Author: Christian Brabandt <cb@256bit.org> Date: Wed Apr 20 14:52:01 2022 +0100 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 https://github.com/vim/vim/issues/10230, closes #10014)
author Bram Moolenaar <Bram@vim.org>
date Wed, 20 Apr 2022 16:00:04 +0200
parents d83d9eaccdde
children 3892e7574812
line wrap: on
line diff
--- a/src/move.c
+++ b/src/move.c
@@ -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)