From d730c5c57e5dfbd58fea59bed93477f2787416ac Mon Sep 17 00:00:00 2001 From: André Twupack Date: Sun, 13 Jul 2014 15:57:13 +0200 Subject: vim-patch:7.4.331 #1017 Problem: Relative numbering not updated after a linewise yank. Issue 235. Solution: Redraw after the yank. (Christian Brabandt) https://code.google.com/p/vim/source/detail?r=6d984caa0409fd284722c44cb09a0a2b5360bd4f --- src/nvim/ops.c | 3 +++ src/nvim/version.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/ops.c b/src/nvim/ops.c index b4ecb12299..0bf338947b 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -2505,6 +2505,9 @@ int op_yank(oparg_T *oap, int deleting, int mess) free(y_current->y_array); y_current = curr; } + if (curwin->w_p_rnu) { + redraw_later(SOME_VALID); // cursor moved to start + } if (mess) { /* Display message about yank? */ if (yanktype == MCHAR && !oap->block_mode diff --git a/src/nvim/version.c b/src/nvim/version.c index 3311b78f49..6fd9a83b0c 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -218,7 +218,7 @@ static int included_patches[] = { //334, //333, //332, - //331, + 331, //330, //329, //328, -- cgit