File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -407,7 +407,14 @@ _zsh_highlight_call_widget()
407407#
408408# 2. If zsh has the memo= feature, which is required for interoperability reasons.
409409# See issues #579 and #735, and the issues referenced from them.
410- if (( zsh_highlight__memo_feature )) && _zsh_highlight__function_callable_p add-zle-hook-widget
410+ #
411+ # We check this with a plain version number check, since a functional check,
412+ # as done by _zsh_highlight, can only be done from inside a widget
413+ # function — a catch-22.
414+ #
415+ # See _zsh_highlight for the magic version number. (The use of 5.8.0.2
416+ # rather than 5.8.0.3 as in the _zsh_highlight is deliberate.)
417+ if is-at-least 5.8.0.2 && _zsh_highlight__function_callable_p add-zle-hook-widget
411418then
412419 autoload -U add-zle-hook-widget
413420 _zsh_highlight__zle-line-finish () {
You can’t perform that action at this time.
0 commit comments