mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
do nothing if PENDING inputs are exist
Originally, zsh-syntax-highlighting called highlight functions at every inputs. It's OK for user's keyboard inputs. But when long inputs come from clipboard, it cause noticeable slowdown.
This commit is contained in:
parent
19f16752bb
commit
0999ab05ba
1 changed files with 4 additions and 0 deletions
|
|
@ -52,6 +52,10 @@ typeset -a zsh_highlight_predicates; zsh_highlight_predicates=()
|
|||
typeset -a zsh_highlight_caches; zsh_highlight_caches=()
|
||||
|
||||
_zsh_highlight-zle-buffer() {
|
||||
if (( PENDING )); then
|
||||
return
|
||||
fi
|
||||
|
||||
local ret=$?
|
||||
{
|
||||
local -a funinds
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue