patch 8.1.2029: cannot control 'cursorline' highlighting well
Problem: Cannot control 'cursorline' highlighting well.
Solution: Add "screenline". (Christian Brabandt, closes #4933)
diff --git a/src/change.c b/src/change.c
index 1321899..8eec452 100644
--- a/src/change.c
+++ b/src/change.c
@@ -593,10 +593,11 @@
#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);