diff options
Diffstat (limited to 'src/screen.c')
-rw-r--r-- | src/screen.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/screen.c b/src/screen.c index 60ffe9930..01134a4da 100644 --- a/src/screen.c +++ b/src/screen.c @@ -3106,8 +3106,9 @@ win_line(wp, lnum, startrow, endrow, nochange) #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; |