Use typeset -g to avoid warnnestedvar warnings

Fixes github issue #271
This commit is contained in:
Eric Freese
2017-09-27 07:55:12 -06:00
parent 977e70e21b
commit 256293cbb6
5 changed files with 12 additions and 12 deletions

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}*]}"
}