zsh-workers
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: Sebastian Gniazdowski <sgniazdowski@gmail.com>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: How can Zle -U interfere with zsh-syntax-highlighting?
Date: Sun, 15 May 2016 17:37:28 +0200	[thread overview]
Message-ID: <CAHYJk3SQumO7iSVc1A5ay8VVjjnig2hriU4nDe12tPzELuiZLw@mail.gmail.com> (raw)
In-Reply-To: <CAKc7PVCBrLv3sM+yX=FuYAJ5XTTva_PKooNvY_rg79stFE-d2g@mail.gmail.com>

On Sun, May 15, 2016 at 5:24 PM, Sebastian Gniazdowski
<sgniazdowski@gmail.com> 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


  reply	other threads:[~2016-05-15 15:37 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-14 21:07 Sebastian Gniazdowski
2016-05-14 21:23 ` Sebastian Gniazdowski
2016-05-15 11:13 ` Bart Schaefer
2016-05-15 15:24   ` Sebastian Gniazdowski
2016-05-15 15:24     ` Sebastian Gniazdowski
2016-05-15 15:37       ` Mikael Magnusson [this message]
2016-05-15 15:41     ` Sebastian Gniazdowski
2016-05-18 17:53       ` Sebastian Gniazdowski
2016-05-19 21:22   ` Daniel Shahaf
2016-05-25  6:14     ` Sebastian Gniazdowski

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=CAHYJk3SQumO7iSVc1A5ay8VVjjnig2hriU4nDe12tPzELuiZLw@mail.gmail.com \
    --to=mikachu@gmail.com \
    --cc=sgniazdowski@gmail.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).