From 7202ce8f93e1b7df5e93c9c934d7b5734c98d174 Mon Sep 17 00:00:00 2001 From: Marlon Richert Date: Fri, 17 Feb 2023 12:17:19 +0200 Subject: [PATCH] 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. --- zsh-autosuggestions.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index b19cac7..d3bb256 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -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 }