vim-patch: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)

https://code.google.com/p/vim/source/detail?r=5cb1828fd0056de3c166e71fbafc67a74c57d7b1
This commit is contained in:
oni-link 2014-05-22 11:54:23 +02:00
parent 0aa8b5828c
commit c2de243ce1
2 changed files with 16 additions and 0 deletions

View File

@ -2203,6 +2203,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. */ * changed. Esp. when the buffer was changed in another window. */
if (hasAnyFolding(wp)) if (hasAnyFolding(wp))
set_topline(wp, wp->w_topline); set_topline(wp, wp->w_topline);
// relative numbering may require updating more
if (wp->w_p_rnu) {
redraw_win_later(wp, SOME_VALID);
}
} }
} }

View File

@ -201,6 +201,17 @@ static char *(features[]) = {
static int included_patches[] = { static int included_patches[] = {
// Add new patch number below this line // Add new patch number below this line
285,
//284,
//283,
//282,
//281,
//280,
//279,
//278,
//277,
//276,
//275,
274, 274,
//273, //273,
272, 272,