driver: Highlight even after a widget returns non-zero

Closes #90.
This commit is contained in:
Matthew Martin 2017-12-24 22:30:42 -06:00
parent 565463ca8f
commit b9d8ab1edf

View File

@ -286,8 +286,10 @@ _zsh_highlight_add_highlight()
# $1 is name of widget to call # $1 is name of widget to call
_zsh_highlight_call_widget() _zsh_highlight_call_widget()
{ {
builtin zle "$@" && builtin zle "$@"
local -r _zsyh_wrappee_status=$?
_zsh_highlight _zsh_highlight
return _zsyh_wrappee_status
} }
# Rebind all ZLE widgets to make them invoke _zsh_highlights. # Rebind all ZLE widgets to make them invoke _zsh_highlights.