diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-09-14 21:01:23 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-09-14 21:01:23 +0200 |
commit | 017ba07fa2cdc578245618717229444fd50c470d (patch) | |
tree | d848d329da08cbda1e846d6e7acf1a440f61d667 /src/change.c | |
parent | d9b0d83b13d2691e4544709abd87eac004715175 (diff) | |
download | vim-git-017ba07fa2cdc578245618717229444fd50c470d.tar.gz |
patch 8.1.2029: cannot control 'cursorline' highlighting wellv8.1.2029
Problem: Cannot control 'cursorline' highlighting well.
Solution: Add "screenline". (Christian Brabandt, closes #4933)
Diffstat (limited to 'src/change.c')
-rw-r--r-- | src/change.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/change.c b/src/change.c index 13218999b..8eec45257 100644 --- 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); |