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

Re: Slow highlighting (Re: "drop-in replacement" and transpose-words-match)



Bart Schaefer wrote on Tue, Jan 26, 2016 at 20:31:05 -0800:
> On Jan 26, 10:50pm, Daniel Shahaf wrote:
> } Subject: Re: Slow highlighting (Re: "drop-in replacement" and transpose-wo
> }
> } fned with z-sy-h is slow.
> } 
> } vared with z-sy-h is slow.
> } 
> } > What about with a history line containing a function definition?
> } 
> } Also slow.
> } 
> } I also tested it as a single line, and that was still slow:
> 
> So, it's not "zed", it's any case where you're doing syntax analysis of
> a function definition.
> 
> Time to start eliminating the set of highlighters one by one until you
> find one that seems to be the culprit?

By default, and when reproducing the problem, only the 'main'
highlighter is enabled.  The problem doesn't occur with only the
'cursor' highlighter enabled («ZSH_HIGHLIGHT_HIGHLIGHTERS=(cursor)»),
nor with no highlighters enabled («ZSH_HIGHLIGHT_HIGHLIGHTERS=()»).

Thanks again,

Daniel



Messages sorted by: Reverse Date, Date, Thread, Author