0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

patch 8.1.2029: cannot control 'cursorline' highlighting well

Problem:    Cannot control 'cursorline' highlighting well.
Solution:   Add "screenline". (Christian Brabandt, closes #4933)
This commit is contained in:
Bram Moolenaar
2019-09-14 21:01:23 +02:00
parent d9b0d83b13
commit 017ba07fa2
33 changed files with 740 additions and 66 deletions

View File

@@ -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);