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?



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