Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: region_highlight and zle_highlight[paste]
- X-seq: zsh-workers 36480
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: region_highlight and zle_highlight[paste]
- Date: Thu, 10 Sep 2015 19:12:40 +0000
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=WxpI9k7yvjpNMfSp4RWaxGvs6eI=; b=M7UF2J eP1QX4UlUe/xLmtSIEYU47di5Y5Gtq0uu76GvQlKPXjhGiXu708wLEBTssxnqwaa /4ZZLMQTE/YnDnUPlcaCZfGZbAxucRs4Rrun2CFjtkSwUidYcG0dr5TwEJoRk8D9 PIO5e4iBD0yxsKhd19D3O/0M+3LAm3nq93cD8=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=WxpI9k7yvjpNMfSp4RWaxGvs6eI=; b=fok6k n5A0A4CLYhuHBMaj+kgkarXmG19uOXf5FmA2HtV1cRQW7dV9cgEL6v1yR60reyO7 Sx7AGNzRFLmwYWCdnAGwP0A+/FyxaeKuguYQxXJ2Js5SU8We4i5QIC9Mxv6i2Jca WKHusOqcFLEU/pOvf0/dm4mMXgAE2BS+H5gh7A=
- In-reply-to: <20150908092746.5d25ad58@pwslap01u.europe.root.pri>
- 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: <20150907212211.GB9512@tarsus.local2> <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@xxxxxxxxxxxxxxxxxx> 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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author