completion should be a local var

This commit is contained in:
Eric Freese 2018-06-10 23:35:22 -06:00
parent bcbdad83e9
commit b0ffc34fb8
2 changed files with 4 additions and 2 deletions

View file

@ -111,7 +111,8 @@ _zsh_autosuggest_capture_completion() {
} }
_zsh_autosuggest_strategy_completion() { _zsh_autosuggest_strategy_completion() {
typeset -g suggestion completion typeset -g suggestion
local completion
# Fetch the first completion result # Fetch the first completion result
_zsh_autosuggest_capture_completion "$1" _zsh_autosuggest_capture_completion "$1"

View file

@ -610,7 +610,8 @@ _zsh_autosuggest_capture_completion() {
} }
_zsh_autosuggest_strategy_completion() { _zsh_autosuggest_strategy_completion() {
typeset -g suggestion completion typeset -g suggestion
local completion
# Fetch the first completion result # Fetch the first completion result
_zsh_autosuggest_capture_completion "$1" _zsh_autosuggest_capture_completion "$1"