mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-11-18 09:51:06 +01:00
Move widget definitions inside anonymous function
This commit is contained in:
parent
66b842579a
commit
50579b3371
2 changed files with 18 additions and 18 deletions
|
@ -208,7 +208,6 @@ _zsh_autosuggest_partial_accept() {
|
||||||
return \$retval
|
return \$retval
|
||||||
}"
|
}"
|
||||||
done
|
done
|
||||||
}
|
|
||||||
|
|
||||||
zle -N autosuggest-fetch _zsh_autosuggest_widget_fetch
|
zle -N autosuggest-fetch _zsh_autosuggest_widget_fetch
|
||||||
zle -N autosuggest-suggest _zsh_autosuggest_widget_suggest
|
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-enable _zsh_autosuggest_widget_enable
|
||||||
zle -N autosuggest-disable _zsh_autosuggest_widget_disable
|
zle -N autosuggest-disable _zsh_autosuggest_widget_disable
|
||||||
zle -N autosuggest-toggle _zsh_autosuggest_widget_toggle
|
zle -N autosuggest-toggle _zsh_autosuggest_widget_toggle
|
||||||
|
}
|
||||||
|
|
|
@ -515,7 +515,6 @@ _zsh_autosuggest_partial_accept() {
|
||||||
return \$retval
|
return \$retval
|
||||||
}"
|
}"
|
||||||
done
|
done
|
||||||
}
|
|
||||||
|
|
||||||
zle -N autosuggest-fetch _zsh_autosuggest_widget_fetch
|
zle -N autosuggest-fetch _zsh_autosuggest_widget_fetch
|
||||||
zle -N autosuggest-suggest _zsh_autosuggest_widget_suggest
|
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-enable _zsh_autosuggest_widget_enable
|
||||||
zle -N autosuggest-disable _zsh_autosuggest_widget_disable
|
zle -N autosuggest-disable _zsh_autosuggest_widget_disable
|
||||||
zle -N autosuggest-toggle _zsh_autosuggest_widget_toggle
|
zle -N autosuggest-toggle _zsh_autosuggest_widget_toggle
|
||||||
|
}
|
||||||
|
|
||||||
#--------------------------------------------------------------------#
|
#--------------------------------------------------------------------#
|
||||||
# History Suggestion Strategy #
|
# History Suggestion Strategy #
|
||||||
|
|
Loading…
Reference in a new issue