aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/misc1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/misc1.c')
-rw-r--r--src/nvim/misc1.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c
index 5760e74cfe..d83c03c9fd 100644
--- a/src/nvim/misc1.c
+++ b/src/nvim/misc1.c
@@ -2188,6 +2188,11 @@ static void changed_common(linenr_T lnum, colnr_T col, linenr_T lnume, long xtra
* changed. Esp. when the buffer was changed in another window. */
if (hasAnyFolding(wp))
set_topline(wp, wp->w_topline);
+
+ // relative numbering may require updating more
+ if (wp->w_p_rnu) {
+ redraw_win_later(wp, SOME_VALID);
+ }
}
}