@@ -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}*]}"
|
||||
}
|
||||
|
||||
@@ -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]"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user