diff --git a/Functions/Misc/add-zle-hook-widget b/Functions/Misc/add-zle-hook-widget index 9cc35496f..f5f9b615d 100644 --- a/Functions/Misc/add-zle-hook-widget +++ b/Functions/Misc/add-zle-hook-widget @@ -41,6 +41,7 @@ zstyle zle-hook types ${hooktypes#zle-} function azhw:${^hooktypes} { local -a hook_widgets local hook + readonly LAST_NONHOOK_WIDGET=$LASTWIDGET # Values of these styles look like number:name # and we run them in number order zstyle -a $WIDGET widgets hook_widgets