0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 7.4.929

Problem:    "gv" after paste selects one character less if 'selection' is
            "exclusive".
Solution:   Increment the end position. (Christian Brabandt)
This commit is contained in:
Bram Moolenaar
2015-11-19 20:11:54 +01:00
parent 5d8afebb5b
commit d29c6fea94
4 changed files with 29 additions and 0 deletions

View File

@@ -9496,6 +9496,9 @@ nv_put(cap)
{
curbuf->b_visual.vi_start = curbuf->b_op_start;
curbuf->b_visual.vi_end = curbuf->b_op_end;
/* need to adjust cursor position */
if (*p_sel == 'e')
inc(&curbuf->b_visual.vi_end);
}
/* When all lines were selected and deleted do_put() leaves an empty