Skip to content

Commit 4a1d77f

Browse files
committed
driver: Highlight even after a widget returns non-zero
Closes zsh-users#90.
1 parent a9be097 commit 4a1d77f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

zsh-syntax-highlighting.zsh

+3-1
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,10 @@ _zsh_highlight_add_highlight()
286286
# $1 is name of widget to call
287287
_zsh_highlight_call_widget()
288288
{
289-
builtin zle "$@" &&
289+
builtin zle "$@"
290+
local -r _zsyh_wrappee_status=$?
290291
_zsh_highlight
292+
return _zsyh_wrappee_status
291293
}
292294

293295
# Rebind all ZLE widgets to make them invoke _zsh_highlights.

0 commit comments

Comments
 (0)