Send only the prefix to the suggestion server

This commit is contained in:
Eric Freese
2017-01-24 19:58:06 -07:00
parent fba20b042e
commit e33eb570c4
3 changed files with 14 additions and 16 deletions

View File

@@ -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
}