about summary refs log tree commit diff
path: root/Test/X02zlevi.ztst
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2014-10-24 00:18:32 +0200
committerOliver Kiddle <opk@zsh.org>2014-10-24 00:18:32 +0200
commit746b53d5d7792ebb63b638116973f32fc492787a (patch)
treeec8c92f4e8c7e14e36f29157c454377602314469 /Test/X02zlevi.ztst
parentbd6f119942bae2c3e914cabbb69624884ab1bc79 (diff)
downloadzsh-746b53d5d7792ebb63b638116973f32fc492787a.tar.gz
zsh-746b53d5d7792ebb63b638116973f32fc492787a.tar.xz
zsh-746b53d5d7792ebb63b638116973f32fc492787a.zip
33520: correct cursor positioning following a vi mode yank operation
Diffstat (limited to 'Test/X02zlevi.ztst')
-rw-r--r--Test/X02zlevi.ztst22
1 files changed, 22 insertions, 0 deletions
diff --git a/Test/X02zlevi.ztst b/Test/X02zlevi.ztst
index b4426a8fb..d9fa0d51f 100644
--- a/Test/X02zlevi.ztst
+++ b/Test/X02zlevi.ztst
@@ -15,6 +15,28 @@
 >BUFFER: good
 >CURSOR: 4
 
+  zletest $'one two\eyb'
+0:yank left moves the cursor
+>BUFFER: one two
+>CURSOR: 4
+
+  zletest $'one two\e0ye'
+0:yank right leaves the cursor
+>BUFFER: one two
+>CURSOR: 0
+
+  zletest $'short\eoand longer\eyk'
+0:yank up line moves cursor up but not to buffer start
+>BUFFER: short
+>and longer
+>CURSOR: 4
+
+  zletest $'one\eotwo\ekyj'
+0:yank down line leaves the cursor
+>BUFFER: one
+>two
+>CURSOR: 2
+
   zletest $'yankee doodle\ebhDyy0"1P'
 0:paste register 1 to get last deletion
 >BUFFER:  doodleyankee