diff --git a/src/drawscreen.c b/src/drawscreen.c index cf2e4c15a..778cda4d4 100644 --- a/src/drawscreen.c +++ b/src/drawscreen.c @@ -2255,6 +2255,7 @@ win_update(win_T *wp) // match in fixed position might need redraw // if lines were inserted or deleted || (wp->w_match_head != NULL + && buf->b_mod_set && buf->b_mod_xlines != 0) #endif )))) @@ -2536,8 +2537,8 @@ win_update(win_T *wp) // - 'number' is set and below inserted/deleted lines, or // - 'relativenumber' is set and cursor moved vertically, // the text doesn't need to be redrawn, but the number column does. - if ((wp->w_p_nu && mod_top != 0 - && lnum >= mod_bot && buf->b_mod_xlines != 0) + if ((wp->w_p_nu && mod_top != 0 && lnum >= mod_bot + && buf->b_mod_set && buf->b_mod_xlines != 0) || (wp->w_p_rnu && wp->w_last_cursor_lnum_rnu != wp->w_cursor.lnum)) { diff --git a/src/version.c b/src/version.c index 53cfc6c1c..2416ad19d 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 889, /**/ 888, /**/