Use typeset -g to avoid warnnestedvar warnings

Fixes github issue #271
This commit is contained in:
Eric Freese
2017-09-27 13:24:06 -06:00
parent 977e70e21b
commit 256293cbb6
5 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -11,5 +11,5 @@ _zsh_autosuggest_strategy_default() {
# Get the history items that match
# - (r) subscript flag makes the pattern match on values
suggestion="${history[(r)${(b)prefix}*]}"
typeset -g suggestion="${history[(r)${(b)prefix}*]}"
}
+1 -1
View File
@@ -48,5 +48,5 @@ _zsh_autosuggest_strategy_match_prev_cmd() {
done
# Give back the matched history entry
suggestion="$history[$histkey]"
typeset -g suggestion="$history[$histkey]"
}