Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: region_highlight and zle_highlight[paste]



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