diff src/misc1.c @ 5885:5cb1828fd005 v7.4.285

updated for version 7.4.285 Problem: When 'relativenumber' is set and deleting lines or undoing that, line numbers are not always updated. (Robert Arkwright) Solution: (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Tue, 13 May 2014 12:44:24 +0200
parents 8e9db1f27a00
children 81f5a056b2a5
line wrap: on
line diff
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -3125,6 +3125,9 @@ changed_common(lnum, col, lnume, xtra)
 	    if (hasAnyFolding(wp))
 		set_topline(wp, wp->w_topline);
 #endif
+	    /* relative numbering may require updating more */
+	    if (wp->w_p_rnu)
+		redraw_win_later(wp, SOME_VALID);
 	}
     }