Fix default suggestion strategy and add testing

This commit is contained in:
Geza Lore authored and Eric Freese committed 2016-03-14 16:51:20 -06:00
1 parent 83f78d0760
commit 976acc708c
4 files changed
+89 -3

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ _zsh_autosuggest_strategy_default() {
local prefix="$(_zsh_autosuggest_escape_command_prefix "$1")"
# Get the hist number of the most recent history item that matches
local histkey="${${(k)history[(R)$prefix*]}[1]}"
local histkey="${${(@k)history[(R)$prefix*]}[1]}"
# Echo the history entry
echo -E "${history[$histkey]}"