zsh-workers
 help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: zsh-workers@zsh.org
Subject: Re: region_highlight and zle_highlight[paste]
Date: Thu, 10 Sep 2015 19:12:40 +0000	[thread overview]
Message-ID: <20150910191240.GH10129@tarsus.local2> (raw)
In-Reply-To: <20150908092746.5d25ad58@pwslap01u.europe.root.pri>

Peter Stephenson wrote on Tue, Sep 08, 2015 at 09:27:46 +0100:
> On Mon, 7 Sep 2015 21:22:11 +0000
> Daniel Shahaf <d.s@daniel.shahaf.name> wrote:
> > Since region_highlight overrides zle_highlight[paste], as a widget
> > writer I'd like to know what part of $BUFFER is being paste-highlighted,
> > in order to avoid setting region_highlight entries for it.
> > 
> > Does this seem reasonable?  
> 
> It's not much code, so if this is useful in practice, I'd say yes.

It is: zsh-syntax-highlighting needs to know what byte range in BUFFER
is being paste-highlighted in order to avoid overriding that.


      parent reply	other threads:[~2015-09-10 19:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-07 21:22 Daniel Shahaf
2015-09-08  8:27 ` Peter Stephenson
2015-09-08 10:27   ` Mikael Magnusson
2015-09-08 10:41     ` Peter Stephenson
2015-09-10 19:12   ` Daniel Shahaf [this message]

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=20150910191240.GH10129@tarsus.local2 \
    --to=d.s@daniel.shahaf.name \
    --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).