]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.285 v7.4.285
authorBram Moolenaar <Bram@vim.org>
Tue, 13 May 2014 10:44:24 +0000 (12:44 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 13 May 2014 10:44:24 +0000 (12:44 +0200)
Problem:    When 'relativenumber' is set and deleting lines or undoing that,
            line numbers are not always updated. (Robert Arkwright)
Solution:   (Christian Brabandt)

src/misc1.c
src/version.c

index 31a9c64461a50adb94c2c9a33350a4ac46ed27d1..88ebd8da39d30162fa8f4bccf5b25593d3df5075 100644 (file)
@@ -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);
        }
     }
 
index 739057d011a9ef9c37da6513216d9a59d5115290..ac01f4280f4bf57032ae0da2594bb37609267205 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    285,
 /**/
     284,
 /**/