wrappers: Reimplement using Mikachu's zle-line-pre-redraw hook (workers/36650).

This commit is contained in:
Daniel Shahaf 2015-09-30 18:56:35 +00:00
parent f3d3aaa00c
commit ef41c9232d

View File

@ -42,6 +42,11 @@ if true; then
fi
fi
integer zsh_highlight_use_redrawhook
if zle -la .match-bracket; then
(( zsh_highlight_use_redrawhook=1 ))
fi
# -------------------------------------------------------------------------------------------------
# Core highlighting update system
# -------------------------------------------------------------------------------------------------
@ -268,6 +273,11 @@ _zsh_highlight_bind_widgets()
done
}
if (( $zsh_highlight_use_redrawhook )); then
_zsh_highlight_bind_widgets(){}
zle -N zle-line-pre-redraw _zsh_highlight
fi
# Load highlighters from directory.
#
# Arguments: