diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/change.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/nvim/change.c b/src/nvim/change.c index 2363578139..f8a4cf4282 100644 --- a/src/nvim/change.c +++ b/src/nvim/change.c @@ -289,8 +289,11 @@ static void changed_common(linenr_T lnum, colnr_T col, linenr_T lnume, set_topline(wp, wp->w_topline); } - // relative numbering may require updating more - if (wp->w_p_rnu) { + // Relative numbering may require updating more. Cursor line + // highlighting probably needs to be updated if it's below the + // change. + if (wp->w_p_rnu + || (wp->w_p_cul && lnum <= wp->w_last_cursorline)) { redraw_win_later(wp, SOME_VALID); } } |