Skip to content

Commit b8c93af

Browse files
committed
driver: Make sure we don't change the return value in a called function.
1 parent 2aca4e2 commit b8c93af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zsh-syntax-highlighting.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ typeset -ga ZSH_HIGHLIGHT_HIGHLIGHTERS
7272
_zsh_highlight()
7373
{
7474
# Store the previous command return code to restore it whatever happens.
75-
local ret=$?
75+
readonly ret=$?
7676

7777
# Remove all highlighting in isearch, so that only the underlining done by zsh itself remains.
7878
# For details see FAQ entry 'Why does syntax highlighting not work while searching history?'.

0 commit comments

Comments
 (0)