aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndré Twupack <atwupack@mailbox.org>2014-07-13 15:57:13 +0200
committerJustin M. Keyes <justinkz@gmail.com>2014-08-13 13:45:54 -0400
commitd730c5c57e5dfbd58fea59bed93477f2787416ac (patch)
treea9f47745daf20e02d6af7a9944219e24c471be74 /src
parent563f38c317908a94893727db501e325f29710edb (diff)
downloadrneovim-d730c5c57e5dfbd58fea59bed93477f2787416ac.tar.gz
rneovim-d730c5c57e5dfbd58fea59bed93477f2787416ac.tar.bz2
rneovim-d730c5c57e5dfbd58fea59bed93477f2787416ac.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/nvim/ops.c3
-rw-r--r--src/nvim/version.c2
2 files changed, 4 insertions, 1 deletions
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,