Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Don't store ZLE_LINE_ABORTED in vared context
- X-seq: zsh-workers 34649
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: PATCH: Don't store ZLE_LINE_ABORTED in vared context
- Date: Thu, 5 Mar 2015 03:41:28 +0100
- Cc: zsh workers <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=it5BB46MJ2pNbfyuIxAUPeaoSgABAkr1ss0HQKwUM7w=; b=O3iHCCLG+NSGnIDFO0FqUZ2fhuJNOl6paE6sMJuShMhNNZewC15jAz20FM4/L7Mkz5 YkIKbKG3KPZnkvXbLtvaTSL/vtNeVzS0bpbOOwWsEgLIJK0cCbyxkt7N0XLeP/W0FRbJ 92GkW6HuoPIezEYWllsymvGFNj7CRRoKNHTYitnGDYeDZtcnVH0VEF60UN6DJSD0RM2R iC+5wudjmgj9dweJbCMfQDl73qlTESJQy6toE8bVovugFogUJowAFApwKGCV9tP9OEst l8Gi9uXpv2F4QFZ0601NONhEuxlSRVcvE8Hc2DBZ7UGspLX7tmdzpm2MsamxJt7iCgD1 Dyiw==
- In-reply-to: <150304175726.ZM19828@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: <CAHYJk3TOafzzcfxE5A72MSumEZFasi95+5-AbRkpHPXKDhCt+w@mail.gmail.com> <150304175726.ZM19828@torch.brasslantern.com>
On Thu, Mar 5, 2015 at 2:57 AM, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Mar 4, 7:40pm, Mikael Magnusson wrote:
> } Subject: PATCH: Don't store ZLE_LINE_ABORTED in vared context
> }
> } send-break (^G ESC-^G) (unbound) (unbound)
> } Abort the current editor function, e.g. execute-named-command, or the
> } editor itself, e.g. if you are in vared. Otherwise abort the parsing
> } of the current line; in this case the aborted line is available in the
> } shell variable ZLE_LINE_ABORTED.
> }
> } However, pressing ctrl-c inside vared stores whatever was being edited
> } in ZLE_LINE_ABORTED, which the above seems to imply should not happen.
>
> Another documentation error rather than code error, IMO.
>
> } The following adjusts the code accordingly. It was actually a bit
> } annoying if you set up a widget to do the up-line-or-aborted, because
> } it will grab the vared text as a command then.
>
> Hrm, perhaps, but I believe the intent was to be able to hang on to
> whatever buffer was most recently being edited when the interrupt came
> through.
So how should I handle this case in my shell widget then? I think pws
introduced the feature so maybe he can clarify. (I won't push the
commit in the meantime).
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author