From 50579b33716f2b64251f6f192b2a89612c77caf8 Mon Sep 17 00:00:00 2001 From: Eric Freese Date: Fri, 21 Dec 2018 23:20:08 -0700 Subject: [PATCH] Move widget definitions inside anonymous function --- src/widgets.zsh | 18 +++++++++--------- zsh-autosuggestions.zsh | 18 +++++++++--------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/widgets.zsh b/src/widgets.zsh index 4a4ce24..1912064 100644 --- a/src/widgets.zsh +++ b/src/widgets.zsh @@ -208,13 +208,13 @@ _zsh_autosuggest_partial_accept() { return \$retval }" done -} -zle -N autosuggest-fetch _zsh_autosuggest_widget_fetch -zle -N autosuggest-suggest _zsh_autosuggest_widget_suggest -zle -N autosuggest-accept _zsh_autosuggest_widget_accept -zle -N autosuggest-clear _zsh_autosuggest_widget_clear -zle -N autosuggest-execute _zsh_autosuggest_widget_execute -zle -N autosuggest-enable _zsh_autosuggest_widget_enable -zle -N autosuggest-disable _zsh_autosuggest_widget_disable -zle -N autosuggest-toggle _zsh_autosuggest_widget_toggle + zle -N autosuggest-fetch _zsh_autosuggest_widget_fetch + zle -N autosuggest-suggest _zsh_autosuggest_widget_suggest + zle -N autosuggest-accept _zsh_autosuggest_widget_accept + zle -N autosuggest-clear _zsh_autosuggest_widget_clear + zle -N autosuggest-execute _zsh_autosuggest_widget_execute + zle -N autosuggest-enable _zsh_autosuggest_widget_enable + zle -N autosuggest-disable _zsh_autosuggest_widget_disable + zle -N autosuggest-toggle _zsh_autosuggest_widget_toggle +} diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index 535c82e..5bb5cd7 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -515,16 +515,16 @@ _zsh_autosuggest_partial_accept() { return \$retval }" done -} -zle -N autosuggest-fetch _zsh_autosuggest_widget_fetch -zle -N autosuggest-suggest _zsh_autosuggest_widget_suggest -zle -N autosuggest-accept _zsh_autosuggest_widget_accept -zle -N autosuggest-clear _zsh_autosuggest_widget_clear -zle -N autosuggest-execute _zsh_autosuggest_widget_execute -zle -N autosuggest-enable _zsh_autosuggest_widget_enable -zle -N autosuggest-disable _zsh_autosuggest_widget_disable -zle -N autosuggest-toggle _zsh_autosuggest_widget_toggle + zle -N autosuggest-fetch _zsh_autosuggest_widget_fetch + zle -N autosuggest-suggest _zsh_autosuggest_widget_suggest + zle -N autosuggest-accept _zsh_autosuggest_widget_accept + zle -N autosuggest-clear _zsh_autosuggest_widget_clear + zle -N autosuggest-execute _zsh_autosuggest_widget_execute + zle -N autosuggest-enable _zsh_autosuggest_widget_enable + zle -N autosuggest-disable _zsh_autosuggest_widget_disable + zle -N autosuggest-toggle _zsh_autosuggest_widget_toggle +} #--------------------------------------------------------------------# # History Suggestion Strategy #