mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-12-08 15:32:31 +01:00
Fix default suggestion strategy and add testing
This commit is contained in:
parent
83f78d0760
commit
976acc708c
4 changed files with 89 additions and 3 deletions
|
|
@ -341,7 +341,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]}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue