mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2026-10-02 16:03:50 +02:00
completion should be a local var
This commit is contained in:
1 parent
bcbdad83e9
commit
b0ffc34fb8
2 files changed
+4
-2
No files matched your search
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user