diff src/change.c @ 18068:1101eacc1444 v8.1.2029

patch 8.1.2029: cannot control 'cursorline' highlighting well Commit: https://github.com/vim/vim/commit/017ba07fa2cdc578245618717229444fd50c470d Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 14 21:01:23 2019 +0200 patch 8.1.2029: cannot control 'cursorline' highlighting well Problem: Cannot control 'cursorline' highlighting well. Solution: Add "screenline". (Christian Brabandt, closes https://github.com/vim/vim/issues/4933)
author Bram Moolenaar <Bram@vim.org>
date Sat, 14 Sep 2019 21:15:04 +0200
parents 06e655ce1938
children e0ec4cd7a865
line wrap: on
line diff
--- a/src/change.c
+++ b/src/change.c
@@ -593,10 +593,11 @@ changed_common(
 #endif
 	    // Relative numbering may require updating more.  Cursor line
 	    // highlighting probably needs to be updated if it's below the
-	    // change.
+	    // change (or is using screenline highlighting)
 	    if (wp->w_p_rnu
 #ifdef FEAT_SYN_HL
-		    || (wp->w_p_cul && lnum <= wp->w_last_cursorline)
+		    || ((wp->w_p_cul && lnum <= wp->w_last_cursorline)
+			    || (wp->w_p_culopt_flags & CULOPT_SCRLINE))
 #endif
 		    )
 		redraw_win_later(wp, SOME_VALID);