Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How can Zle -U interfere with zsh-syntax-highlighting?
- X-seq: zsh-workers 38499
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- Subject: Re: How can Zle -U interfere with zsh-syntax-highlighting?
- Date: Sun, 15 May 2016 17:37:28 +0200
- Cc: Zsh hackers list <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; bh=hbPZL7QQ5BfPugv5JBNrdjiP4iNhhcGgO1Xogomn/7E=; b=T4KRileElYfDLnziQBbceZ6wsnL+HjJETctTqpZGwSQA+nggWaTnRZMlK2MEi5YoUZ m21ewbXXNIWpQ/sq9Mc5oWqRTLhErUx+aWb8/jBfH/fg4iPnaPfuXR/LtmVH+vHizYl8 Elwt05IcHy4Z5YbDcqIYXG/2546pyosZFt6D2ppYQHw13KYxGyaO8Elwu2LhoBrkpFyr 3gRCFLBwUtaLzWvLlg4QwMARUyfMn25saW29hywbRP911XHDb27f7xFQ3rIfHg+wwClq fWnCzNWg2LQCsHjZzf+9rezlpSQ1HSzOKEocw/xXY+B8CSaEWsOBrXsWjXcuSPlyEPWW totA==
- In-reply-to: <CAKc7PVCBrLv3sM+yX=FuYAJ5XTTva_PKooNvY_rg79stFE-d2g@mail.gmail.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: <CAKc7PVCZhyjPqzgPSrKOUs=+Qp5m_yELs2uEAwuCQYZXDKkxUg@mail.gmail.com> <CAH+w=7b7g-g7JmFvrgR4ezWz7CrVZnXVrV+u9iOitX0H0y_pVQ@mail.gmail.com> <CAKc7PVDQ-1Kh7EngkJSmB7buk0bEAkwsgZZVhLWW-fMaqnsdKw@mail.gmail.com> <CAKc7PVCBrLv3sM+yX=FuYAJ5XTTva_PKooNvY_rg79stFE-d2g@mail.gmail.com>
On Sun, May 15, 2016 at 5:24 PM, Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
> PS. Also, just noting that print -zr doesn't do highlighting
When the stack pops, the code that calls the pre-redraw hook isn't
reached. I tried putting it there but it caused crashes. I asked if
anyone was interested in looking into that when I posted the patches
but IIRC there were no responses to that. Those mails probably have
some info about what areas of the code to look at though. If you do
zle -M "$BUFFER" in your zle-line-init hook, you will see that it
already contains the text, so doing highlight from there _should_
work, but doesn't. I guess the hook is called before the code that
unsets all the region_highlight arrays.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author