Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Oddity with reset-prompt and vared
- X-seq: zsh-workers 28121
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: Oddity with reset-prompt and vared
- Date: Tue, 3 Aug 2010 22:30:32 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=YrsBd62cR9Bhe4gcjwFnXrVnbcSpbf7z7vvtbd/GTAM=; b=MsWSPLAgAwGQDhAFECQQHCKrcCf13VdNXVWUD87pgCFLtia52AUnheZKqlYnvKCVpl I0rTBJDT6EYV4N0Nna3Ut/+JJbXi3sHrX/EGH0UhkWKQeQRWeBSPF2ch6GDhRIL+X8zc sh7e1p1kjivPuCgiPf1392KjnNYQVCxwNFJb0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=UVvNDU7/sSyGXwx7JrSbPvfuAGaDBHvaD4wWgNNyeHIwF+u2OLgB1xFdO2qkAIe4TI HiQft1gDZSynjarJqNe/HkFtXmC1L4PLaJiizIwYYxsUuUwZHw8aPSAGmbiBluBBH7uB h64ER8rgEa1HflKiyfFUXBVn3ygnjBY33ON7k=
- 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
This is mostly out of curiosity, I've already worked around the
problem by checking $CONTEXT for vared before running reset-prompt
since it doesn't make sense anyway, but I noticed this happening
% zsh -f
% function a() { zle reset-prompt; zle .accept-line }
% zle -N accept-line a
% a=
% vared a
aoeua
% vared a
ããããã<press enter>
<the end of the string is replaced with spaces>
ã
%
If the cause of this isn't immediately obvious then I won't be sad if
no one investigates further, just thought I'd mention it.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author