mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-12-08 15:32:31 +01:00
Send only the prefix to the suggestion server
This commit is contained in:
parent
fba20b042e
commit
e33eb570c4
3 changed files with 14 additions and 16 deletions
|
|
@ -7,5 +7,7 @@
|
|||
#
|
||||
|
||||
_zsh_autosuggest_strategy_default() {
|
||||
fc -lnrm "$1*" 1 2>/dev/null | head -n 1
|
||||
setopt localoptions EXTENDED_GLOB
|
||||
|
||||
fc -lnrm "${1//(#m)[\\()\[\]|*?~]/\\$MATCH}*" 1 2>/dev/null | head -n 1
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue