diff src/move.c @ 10585:7230ee024c43 v8.0.0182

patch 8.0.0182: cursor ilne not update when 'cursorbind' is set commit https://github.com/vim/vim/commit/e47683a0913f102b6ae08c8848d5aa675d99b188 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 14 15:52:46 2017 +0100 patch 8.0.0182: cursor ilne not update when 'cursorbind' is set Problem: When 'cursorbind' and 'cursorline' are set, but 'cursorcolumn' is not, then the cursor line highlighting is not updated. (Hirohito Higashi) Solution: Call redraw_later() with NOT_VALID.
author Christian Brabandt <cb@256bit.org>
date Sat, 14 Jan 2017 16:00:03 +0100
parents f91c0376f2c6
children 472bff31a20a
line wrap: on
line diff
--- a/src/move.c
+++ b/src/move.c
@@ -2851,7 +2851,7 @@ do_check_cursorbind(void)
 	    if (has_mbyte)
 		mb_adjust_cursor();
 # endif
-	    redraw_later(VALID);
+	    redraw_later(curwin->w_p_cul ? NOT_VALID : VALID);
 
 	    /* Only scroll when 'scrollbind' hasn't done this. */
 	    if (!curwin->w_p_scb)