From b9d8ab1edf4e43a88b410bb35d62493a148a68ea Mon Sep 17 00:00:00 2001 From: Matthew Martin Date: Sun, 24 Dec 2017 22:30:42 -0600 Subject: [PATCH] driver: Highlight even after a widget returns non-zero Closes #90. --- zsh-syntax-highlighting.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zsh-syntax-highlighting.zsh b/zsh-syntax-highlighting.zsh index 4caf3a87c..774fc5a6a 100644 --- a/zsh-syntax-highlighting.zsh +++ b/zsh-syntax-highlighting.zsh @@ -286,8 +286,10 @@ _zsh_highlight_add_highlight() # $1 is name of widget to call _zsh_highlight_call_widget() { - builtin zle "$@" && + builtin zle "$@" + local -r _zsyh_wrappee_status=$? _zsh_highlight + return _zsyh_wrappee_status } # Rebind all ZLE widgets to make them invoke _zsh_highlights.