From c2de243ce1652912a518b052fb1887ae05640d74 Mon Sep 17 00:00:00 2001 From: oni-link Date: Thu, 22 May 2014 11:54:23 +0200 Subject: [PATCH] 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 --- src/nvim/misc1.c | 5 +++++ src/nvim/version.c | 11 +++++++++++ 2 files changed, 16 insertions(+) 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,