From 70438d233d00c4afb2e968eca2a0bcebdaae007c Mon Sep 17 00:00:00 2001 From: Eric Freese Date: Tue, 23 Feb 2016 10:21:35 -0700 Subject: [PATCH] Use zle -w flag to set WIDGET appropriately when calling orig widget --- src/bind.zsh | 2 +- zsh-autosuggestions.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bind.zsh b/src/bind.zsh index cc020de..90dd338 100644 --- a/src/bind.zsh +++ b/src/bind.zsh @@ -74,6 +74,6 @@ _zsh_autosuggest_invoke_original_widget() { shift if [ $widgets[$original_widget_name] ]; then - zle $original_widget_name -- $@ + zle $original_widget_name -w -- $@ fi } diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index 81aa947..9922cbd 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -176,7 +176,7 @@ _zsh_autosuggest_invoke_original_widget() { shift if [ $widgets[$original_widget_name] ]; then - zle $original_widget_name -- $@ + zle $original_widget_name -w -- $@ fi }