diff src/screen.c @ 818:1f929f3ca806 v7.0c03

updated for version 7.0c03
author vimboss
date Wed, 29 Mar 2006 21:18:24 +0000
parents 4f1b94b51e99
children 23f82b5d2814
line wrap: on
line diff
--- a/src/screen.c
+++ b/src/screen.c
@@ -3106,8 +3106,9 @@ win_line(wp, lnum, startrow, endrow, noc
 #endif
 
 #ifdef FEAT_SYN_HL
-    /* Cursor line highlighting for 'cursorline'. */
-    if (wp->w_p_cul && lnum == wp->w_cursor.lnum)
+    /* Cursor line highlighting for 'cursorline'.  Not when Visual mode is
+     * active, because it's not clear what is selected then. */
+    if (wp->w_p_cul && lnum == wp->w_cursor.lnum && !VIsual_active)
     {
 	line_attr = hl_attr(HLF_CUL);
 	area_highlighting = TRUE;