From 73ca1531593eb6907bf639882effba47d574b744 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Mon, 3 Nov 2014 00:36:00 +0100 Subject: 33593: support numeric argument to vi-join --- Test/X02zlevi.ztst | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Test/X02zlevi.ztst') diff --git a/Test/X02zlevi.ztst b/Test/X02zlevi.ztst index bd3105d14..f8a94ce3d 100644 --- a/Test/X02zlevi.ztst +++ b/Test/X02zlevi.ztst @@ -15,6 +15,18 @@ >BUFFER: good >CURSOR: 4 + zletest $' four\eO\C-v\tthree\eO two\eOone\e3J' +0:join lines with line count +>BUFFER: one two three +> four +>CURSOR: 7 + +# like real vi, we just join as many as possible, in vim this beeps + zletest $'two\eOone\e3J' +0:join more lines than possible +>BUFFER: one two +>CURSOR: 3 + zletest $'one two\eyb' 0:yank left moves the cursor >BUFFER: one two -- cgit 1.4.1