Don't discard $WIDGETSTYLE

Calling a completion widget without passing the -w flag causes
$WIDGETSTYLE to be unset. This breaks logic in _oldlist, _list_files and
some plugins.
This commit is contained in:
Marlon Richert 2023-02-17 12:17:19 +02:00
parent a411ef3e09
commit 7202ce8f93

View file

@ -231,7 +231,7 @@ _zsh_autosuggest_invoke_original_widget() {
shift
if (( ${+widgets[$original_widget_name]} )); then
zle $original_widget_name -- $@
zle $original_widget_name -w -- $@
fi
}