From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: Sebastian Gniazdowski <psprint@fastmail.com>
Cc: zsh-workers@zsh.org
Subject: Re: Upcoming zle-line-pre-redraw hook – can it be saved and restored?
Date: Fri, 28 Oct 2016 14:13:10 +0000 [thread overview]
Message-ID: <20161028141310.GA6133@fujitsu.shahaf.local2> (raw)
In-Reply-To: <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
next prev parent reply other threads:[~2016-10-28 14:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-28 8:18 Sebastian Gniazdowski
2016-10-28 14:13 ` Daniel Shahaf [this message]
2016-10-28 15:00 ` Upcoming zle-line-pre-redraw hook - " Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161028141310.GA6133@fujitsu.shahaf.local2 \
--to=d.s@daniel.shahaf.name \
--cc=psprint@fastmail.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).