diff options
author | André Twupack <atwupack@mailbox.org> | 2014-07-13 15:57:13 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-08-13 13:45:54 -0400 |
commit | d730c5c57e5dfbd58fea59bed93477f2787416ac (patch) | |
tree | a9f47745daf20e02d6af7a9944219e24c471be74 /src/nvim/ops.c | |
parent | 563f38c317908a94893727db501e325f29710edb (diff) | |
download | rneovim-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/nvim/ops.c')
-rw-r--r-- | src/nvim/ops.c | 3 |
1 files changed, 3 insertions, 0 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 |