Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Upcoming zle-line-pre-redraw hook – can it be saved and restored?
- X-seq: zsh-workers 39747
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Sebastian Gniazdowski <psprint@xxxxxxxxxxxx>
- Subject: Re: Upcoming zle-line-pre-redraw hook – can it be saved and restored?
- Date: Fri, 28 Oct 2016 14:13:10 +0000
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=naHUMJwEjhONvna NZxTCRHd7DAY=; b=0k0B7RUAlWEqogdKD6ErQDojdZ4LQ4cWmkS38BO3cj1ohtu HRD55TmCjkf+DOHhcLn0A4TMQTTu1DH7zgEheaZ9U3XDBQHINS9yeLwRp816et3f xAdtK3yX2kIqgO6Z9dFeSPYB0hFpJULp1ye6yaQu1UmIPTfLl7x+LrA2Q5pA=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=smtpout; bh=naHUMJwEjhONvn aNZxTCRHd7DAY=; b=AT4LRMdk8PV8+vhf+NEAQEMbR1bjrIDqLKS/CRn10WNDFx yAj+TAnDpf5VLbS76VWyxu8Ga049Eteh2GSpNBlO1dByucMH6ZLEG5lvYeBge61z OjS7xBGKYcg9kbQoUHGMx7THJ1i/dl/GCaCeFAeInTYN4egwicMbn8ycqWuAM=
- In-reply-to: <1477642738.995456.770012089.09023ED8@webmail.messagingengine.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: <1477642738.995456.770012089.09023ED8@webmail.messagingengine.com>
Sebastian Gniazdowski wrote on Fri, Oct 28, 2016 at 01:18:58 -0700:
> With zle-line-pre-redraw, one will have to also save the hook, disable
> it, then restore it after leaving recursive-edit. Will this be
> possible?
>
You could delete the 'zle-line-pre-redraw' widget at entry and re-create
it at exit. Or do the same with the function it is bound to (and
replace it by an empty(){} stub to avoid stderr spam).
> PS. This can also be needed for vared. Currently z-sy-h tries to
> colorify what user enters, what has rather bad effects, as things are
> basically drawn in red.
I fixed that months ago. You should merge from or rebase on top of the
latest z-sy-h master.
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author