aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoroni-link <knil.ino@gmail.com>2014-05-22 11:54:23 +0200
committeroni-link <knil.ino@gmail.com>2014-05-22 11:54:23 +0200
commitc2de243ce1652912a518b052fb1887ae05640d74 (patch)
tree2d14429243acf3669da45ce5d99e395b5eedca88 /src
parent0aa8b5828cc0674894681841f40c3c05bfd2f07b (diff)
downloadrneovim-c2de243ce1652912a518b052fb1887ae05640d74.tar.gz
rneovim-c2de243ce1652912a518b052fb1887ae05640d74.tar.bz2
rneovim-c2de243ce1652912a518b052fb1887ae05640d74.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/nvim/misc1.c5
-rw-r--r--src/nvim/version.c11
2 files changed, 16 insertions, 0 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c
index 4f7a78e534..e0d62f9b24 100644
--- a/src/nvim/misc1.c
+++ b/src/nvim/misc1.c
@@ -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. */
if (hasAnyFolding(wp))
set_topline(wp, wp->w_topline);
+
+ // relative numbering may require updating more
+ if (wp->w_p_rnu) {
+ redraw_win_later(wp, SOME_VALID);
+ }
}
}
diff --git a/src/nvim/version.c b/src/nvim/version.c
index bab38a8d32..eac5854ff0 100644
--- a/src/nvim/version.c
+++ b/src/nvim/version.c
@@ -201,6 +201,17 @@ static char *(features[]) = {
static int included_patches[] = {
// Add new patch number below this line
+ 285,
+ //284,
+ //283,
+ //282,
+ //281,
+ //280,
+ //279,
+ //278,
+ //277,
+ //276,
+ //275,
274,
//273,
272,