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

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