vim-patch:8.1.2029: cannot control 'cursorline' highlighting well

Problem:    Cannot control 'cursorline' highlighting well.
Solution:   Add "screenline". (Christian Brabandt, closes vim/vim#4933)
017ba07fa2
This commit is contained in:
zeertzjq
2021-07-30 10:49:42 +08:00
parent 337b1b31ac
commit 1666fe9dfe
10 changed files with 305 additions and 47 deletions

View File

@@ -292,9 +292,10 @@ static void changed_common(linenr_T lnum, colnr_T col, linenr_T lnume,
// 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
|| (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))) {
redraw_later(wp, SOME_VALID);
}
}