workaround for issue #88, probably not the final solution, see discussion

This commit is contained in:
Hagen Graf 2016-01-25 09:33:48 +01:00
parent 7dc9e0f926
commit a870925f99

View file

@ -291,4 +291,10 @@ zle -N autosuggest-tab
zle -N autosuggest-suspend zle -N autosuggest-suspend
zle -N autosuggest-accept-suggestion 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 autosuggest-restore-widgets