From 48bdcd771308072c1cfc35220e4478356fd475fa Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Thu, 17 Nov 2016 12:28:08 +0100 Subject: 39959: when repeating vi changes advance through the numbered killring registers Also fix numeric arguments with vi-repeat-change: and argument passed to the repeat replaces that previously saved with the change. --- Test/X02zlevi.ztst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'Test/X02zlevi.ztst') diff --git a/Test/X02zlevi.ztst b/Test/X02zlevi.ztst index 70fef4c67..c19573241 100644 --- a/Test/X02zlevi.ztst +++ b/Test/X02zlevi.ztst @@ -130,6 +130,16 @@ >long >CURSOR: 0 + zletest $'one two\e03rX$.' +0:repeat replace chars at the end of the line consumes the replace char +>BUFFER: XXX two +>CURSOR: 6 + + zletest $'one two three\e02rxw3.w.' +0:numeric argument to repeat replaces change count +>BUFFER: xxe xxx xxxee +>CURSOR: 10 + zletest $'yankee doodle\ebhDyy0"1P' 0:paste register 1 to get last deletion >BUFFER: doodleyankee @@ -176,6 +186,11 @@ 0:retrieve unnamed register after appending >BUFFER: second > +>CURSOR: 0 + + zletest $'123456789\exxxxxxxxx"1P.........' +0:repeat advances to next killring register +>BUFFER: 9987654321 >CURSOR: 0 zletest $'Z\exayankee doodle\e"_db0"_yeP' -- cgit 1.4.1