Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: $ZLE_LINE_ABORTED
- X-seq: zsh-workers 28255
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: PATCH: $ZLE_LINE_ABORTED
- Date: Sun, 12 Sep 2010 21:51:51 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=o0SMBYD8Y7kh+TALuUpT3Ke3GKAd3oHlXIv03CnX+UE=; b=I6HgoBblDiorZ38p0SItY73ihdRH/NH57bL2+l5Pe613x42Y6iF4KQcQrj/KZZ3K4M tfuGqOwNX1AA832GugUh27dzmTnjE9UaWoesssHh97OkYygkojSUAtC1JitrcpL57lZL ddilsM/qR7ZKd0uZeAtUV0ZrCb46fnGsjAfAg=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=i/rNhGWoExU+j7VeJqcnPfhEHNwGegveTfjR/T9V3P9FxR/wtgTkiSpPn6564gmr1I cDHyjLhSwjREXZ6YpNClyrJmmmpkRA6H4Zkye0SKL4k7HnQXqvkoRZO+nyPczKTDPxlI JFAIHlpiGdfHe+XZUIBbD9Z6r8gLwoXDnhvlQ=
- In-reply-to: <AANLkTi=uW9_Ur1uQf6Ku5WS-1YGD4UzX9xg5DOYLyHv9@xxxxxxxxxxxxxx>
- 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: <20100907114403.0e526e9c@xxxxxxxxxxxxxxxxxxxxxxxxx> <AANLkTinjkD7F53shp+vWZu01J-a48MxhbvFGpDrZshhC@xxxxxxxxxxxxxx> <20100907130231.49dcf737@xxxxxxxxxxxxxxxxxxxxxxxxx> <m3hbi1sjzm.fsf@xxxxxxxxxxxxxx> <20100907154418.479be919@xxxxxxxxxxxxxxxxxxxxxxxxx> <m3eid5sj32.fsf@xxxxxxxxxxxxxx> <AANLkTi=uW9_Ur1uQf6Ku5WS-1YGD4UzX9xg5DOYLyHv9@xxxxxxxxxxxxxx>
On 12 September 2010 21:49, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> #the intent here is to insert syntax errors back on the command line, since
> #those aren't saved in history, for example entering "do;"
> function _zle_line_init() {
> if [[ -n $ZLE_LINE_SAVED && $ZLE_LINE_SAVED[1] != " " &&
> $ZLE_LINE_SAVED != $history[$((HISTCMD-1))] ]]; then
I had print -s $ZLE_LINE_SAVED here for a while, but it didn't work
well, that's what the [1] != " " is there from (emulating
histignorespace), forgot to remove it.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author