Move widget definitions inside anonymous function

This commit is contained in:
Eric Freese 2018-12-21 23:20:08 -07:00
parent 66b842579a
commit 50579b3371
2 changed files with 18 additions and 18 deletions

View file

@ -208,7 +208,6 @@ _zsh_autosuggest_partial_accept() {
return \$retval
}"
done
}
zle -N autosuggest-fetch _zsh_autosuggest_widget_fetch
zle -N autosuggest-suggest _zsh_autosuggest_widget_suggest
@ -218,3 +217,4 @@ 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
}

View file

@ -515,7 +515,6 @@ _zsh_autosuggest_partial_accept() {
return \$retval
}"
done
}
zle -N autosuggest-fetch _zsh_autosuggest_widget_fetch
zle -N autosuggest-suggest _zsh_autosuggest_widget_suggest
@ -525,6 +524,7 @@ 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 #