summaryrefslogtreecommitdiff
path: root/src/testdir
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/testdir
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/testdir')
-rw-r--r--src/testdir/test94.in15
-rw-r--r--src/testdir/test94.ok9
2 files changed, 24 insertions, 0 deletions
diff --git a/src/testdir/test94.in b/src/testdir/test94.in
index 287d9dc9c..aa86fc1df 100644
--- a/src/testdir/test94.in
+++ b/src/testdir/test94.in
@@ -210,6 +210,21 @@ $vp
:-2yank
$v$p
:$put ='---'
+:
+:$put =''
+:$put ='gv in exclusive select mode after operation'
+:$put ='zzz '
+:$put ='äà '
+:set selection=exclusive
+kv3lyjv3lpgvcxxx
+:$put ='---'
+:
+:$put =''
+:$put ='gv in exclusive select mode without operation'
+:$put ='zzz '
+:set selection=exclusive
+0v3lgvcxxx
+:$put ='---'
:/^start:/+2,$w! test.out
:q!
ENDTEST
diff --git a/src/testdir/test94.ok b/src/testdir/test94.ok
index a1b037813..c02392217 100644
--- a/src/testdir/test94.ok
+++ b/src/testdir/test94.ok
@@ -112,3 +112,12 @@ cc
aaa
---
+
+gv in exclusive select mode after operation
+zzz
+xxx
+---
+
+gv in exclusive select mode without operation
+xxx
+---