summaryrefslogtreecommitdiff
path: root/src/normal.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-11-19 20:11:54 +0100
committerBram Moolenaar <Bram@vim.org>2015-11-19 20:11:54 +0100
commitd29c6fea94947b3f4b54fbd5a6f832a7d744bf27 (patch)
treee7a1038edad7ed8ae58ce1ac444ffa7680ffc98b /src/normal.c
parent5d8afebb5bf7fb1e8ce06062451dc6a1f9a53ac0 (diff)
downloadvim-git-d29c6fea94947b3f4b54fbd5a6f832a7d744bf27.tar.gz
patch 7.4.929v7.4.929
Problem: "gv" after paste selects one character less if 'selection' is "exclusive". Solution: Increment the end position. (Christian Brabandt)
Diffstat (limited to 'src/normal.c')
-rw-r--r--src/normal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/normal.c b/src/normal.c
index b994056e6..b9170ace5 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -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