mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-12-08 15:32:31 +01:00
Lots of little async cleanups
This commit is contained in:
parent
c3425870f1
commit
e3eb286ea2
7 changed files with 160 additions and 102 deletions
|
|
@ -15,6 +15,6 @@ _zsh_autosuggest_strategy_default() {
|
|||
local -a histkeys
|
||||
histkeys=(${(k)history[(r)$prefix*]})
|
||||
|
||||
# Echo the value of the first key
|
||||
echo -E "${history[$histkeys[1]]}"
|
||||
# Give back the value of the first key
|
||||
suggestion="${history[$histkeys[1]]}"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,6 +47,6 @@ _zsh_autosuggest_strategy_match_prev_cmd() {
|
|||
fi
|
||||
done
|
||||
|
||||
# Echo the matched history entry
|
||||
echo -E "$history[$histkey]"
|
||||
# Give back the matched history entry
|
||||
suggestion="$history[$histkey]"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue