mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-12-23 10:21:15 +01:00
completion should be a local var
This commit is contained in:
parent
bcbdad83e9
commit
b0ffc34fb8
2 changed files with 4 additions and 2 deletions
|
@ -111,7 +111,8 @@ _zsh_autosuggest_capture_completion() {
|
|||
}
|
||||
|
||||
_zsh_autosuggest_strategy_completion() {
|
||||
typeset -g suggestion completion
|
||||
typeset -g suggestion
|
||||
local completion
|
||||
|
||||
# Fetch the first completion result
|
||||
_zsh_autosuggest_capture_completion "$1"
|
||||
|
|
|
@ -610,7 +610,8 @@ _zsh_autosuggest_capture_completion() {
|
|||
}
|
||||
|
||||
_zsh_autosuggest_strategy_completion() {
|
||||
typeset -g suggestion completion
|
||||
typeset -g suggestion
|
||||
local completion
|
||||
|
||||
# Fetch the first completion result
|
||||
_zsh_autosuggest_capture_completion "$1"
|
||||
|
|
Loading…
Reference in a new issue