Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug in ZSH's vi emulation
- X-seq: zsh-workers 39817
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Bug in ZSH's vi emulation
- Date: Thu, 03 Nov 2016 13:43:01 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1478176982; bh=smmL7eajFS+Qo9JtOwKYtaKSjIAEpbfBoRQi+wDuw9M=; h=In-reply-to:From:References:To:Subject:Date:From:Subject; b=rfKn0pAzN4vMLnhAvE21HFm9iJypwUEIkOAvQW8LcNkAL2Tsra4uAw7MvfU3T38jfpm5/JacY3yNP+4fZuTlZY/WBzB4wAxozajxW94DIQCDjbPUHR8t0yyhrTY365YCC+wpI8eNDQRR7tJ8z2GNTKyDrnrtlHsYdnkKd5cAsXMy2043UZfjZ8JfnOhCxJc9sTMI4AQjyKCGmisk3XTXtPl/kLHlK78ApgQku4k3cX1F2enWypP/jOJo9z5mDA+jnVaA1jercc4Ja3lCaMJJSXx4C/68rAq575ldkZ9kOxy9JC78j02ZSzEAYZvfnfdq3Ue2FMVn1NfvDrDSTmPlEw==
- In-reply-to: <161102214418.ZM12525@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20161005080921.GB26647@raspi> <161005101938.ZM12590@torch.brasslantern.com> <20161102045925.GA6763@fujitsu.shahaf.local2> <11719.1478105483@hydra.kiddle.eu> <161102214418.ZM12525@torch.brasslantern.com>
Bart wrote:
> So, given 39813, this seems to work:
That, along with 39813, looks good. As a further tweak, I had to
make keybuflen not be declared static. It might also be good to
tweak the comment leading up to this function (startvichange) to
reference keybuf instead of lastchar.
> All X02zlevi tests pass, and I'm even able to do e.g. gUfx to uppercase
> everything through the next "x".
Works well in my testing too. We should add a new testcase too such
as that below.
Oliver
diff --git a/Test/X02zlevi.ztst b/Test/X02zlevi.ztst
index ced7030..aa3587e 100644
--- a/Test/X02zlevi.ztst
+++ b/Test/X02zlevi.ztst
@@ -244,6 +244,12 @@
>BUFFER: binging
>CURSOR: 3
+# for vi compatibility, this should repeat the previous change
+ zletest $'worm\erdhd..'
+0:use of vi-repeat as the motion and repeat after a failed change
+>BUFFER: word
+>CURSOR: 2
+
zpty_run 'bindkey "^_" undo'
zletest $'undoc\037e'
0:use of undo in vi insert mode
Messages sorted by:
Reverse Date,
Date,
Thread,
Author