From a870925f9924a0537ddcf1afc495ac59d1df09f9 Mon Sep 17 00:00:00 2001 From: Hagen Graf Date: Mon, 25 Jan 2016 09:33:48 +0100 Subject: [PATCH] workaround for issue #88, probably not the final solution, see discussion --- autosuggestions.zsh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/autosuggestions.zsh b/autosuggestions.zsh index 7a9112f..4106876 100644 --- a/autosuggestions.zsh +++ b/autosuggestions.zsh @@ -291,4 +291,10 @@ zle -N autosuggest-tab zle -N autosuggest-suspend zle -N autosuggest-accept-suggestion +# save widgets +for widget in $ZLE_AUTOSUGGEST_ALL_WIDGETS; do + [[ -z $widgets[$widget] || ! -z $widgets[.$widget] ]] && continue + eval "zle -A $widget .$widget" +done + autosuggest-restore-widgets