diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-08-02 19:23:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-02 19:23:57 -0400 |
commit | 8baf7bce2b51e8d3d47b6c70ce054663d927639a (patch) | |
tree | ca10917fd84e011306b3303829704232b7f2f682 /src/nvim/normal.c | |
parent | 93443d59a9680a6055d4602653d34516bc2c2571 (diff) | |
parent | c24daf5a1013c629f82ba8d4a4de885d7986d982 (diff) | |
download | rneovim-8baf7bce2b51e8d3d47b6c70ce054663d927639a.tar.gz rneovim-8baf7bce2b51e8d3d47b6c70ce054663d927639a.tar.bz2 rneovim-8baf7bce2b51e8d3d47b6c70ce054663d927639a.zip |
Merge pull request #15226 from zeertzjq/vim-8.1.2029
vim-patch:8.1.2029,8.1.2117,8.1.2214,8.2.3204
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r-- | src/nvim/normal.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c index 9185062f94..54ca216a53 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -1275,6 +1275,15 @@ static void normal_redraw(NormalState *s) redrawWinline(curwin, curwin->w_cursor.lnum); } + // Might need to update for 'cursorline'. + // When 'cursorlineopt' is "screenline" need to redraw always. + if (curwin->w_p_cul + && (curwin->w_last_cursorline != curwin->w_cursor.lnum + || (curwin->w_p_culopt_flags & CULOPT_SCRLINE)) + && !char_avail()) { + redraw_later(curwin, VALID); + } + if (VIsual_active) { update_curbuf(INVERTED); // update inverted part } else if (must_redraw) { |