mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
0aa8b5828c
commit
c2de243ce1
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user