Send only the prefix to the suggestion server

This commit is contained in:
Eric Freese committed 2017-01-24 20:01:11 -07:00
1 parent fba20b042e
commit e33eb570c4
3 files changed
+14 -16

No files matched your search

+3 -1
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
}