mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2026-11-29 11:53:06 +01:00
Send only the prefix to the suggestion server
This commit is contained in:
1 parent
fba20b042e
commit
e33eb570c4
3 files changed
+14
-16
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user