We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 291634e commit 96eb2e3Copy full SHA for 96eb2e3
zsh-syntax-highlighting.zsh
@@ -72,7 +72,9 @@ typeset -ga ZSH_HIGHLIGHT_HIGHLIGHTERS
72
_zsh_highlight()
73
{
74
# Store the previous command return code to restore it whatever happens.
75
- readonly ret=$?
+ local ret=$?
76
+ # Make it read-only. Can't combine this with the previous line when POSIX_BUILTINS may be set.
77
+ typeset -r ret
78
79
# Remove all highlighting in isearch, so that only the underlining done by zsh itself remains.
80
# For details see FAQ entry 'Why does syntax highlighting not work while searching history?'.
0 commit comments