# HG changeset patch # User Bram Moolenaar # Date 1399977864 -7200 # Node ID 5cb1828fd0056de3c166e71fbafc67a74c57d7b1 # Parent 9984a20848a5023bba20c96e19682e7b49851740 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) diff --git a/src/misc1.c b/src/misc1.c --- 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); } } diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -735,6 +735,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 285, +/**/ 284, /**/ 283,