diff options
author | zeertzjq <zeertzjq@outlook.com> | 2021-07-30 10:49:42 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2021-08-02 05:41:17 +0800 |
commit | 1666fe9dfe08201c92271b7a59fb2f96a20eb8db (patch) | |
tree | 4d1f9d0e574a13bf9e7c15a9ab2c30969713da2b /src/nvim/change.c | |
parent | 337b1b31ac12ee4351668e32fe116282efd3dcc3 (diff) | |
download | rneovim-1666fe9dfe08201c92271b7a59fb2f96a20eb8db.tar.gz rneovim-1666fe9dfe08201c92271b7a59fb2f96a20eb8db.tar.bz2 rneovim-1666fe9dfe08201c92271b7a59fb2f96a20eb8db.zip |
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)
https://github.com/vim/vim/commit/017ba07fa2cdc578245618717229444fd50c470d
Diffstat (limited to 'src/nvim/change.c')
-rw-r--r-- | src/nvim/change.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/change.c b/src/nvim/change.c index 04552f6703..fa813ef75c 100644 --- a/src/nvim/change.c +++ b/src/nvim/change.c @@ -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); } } |