1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-26 05:51:08 +02:00

16590: use a prefix match instead of a "fuzzy-exact" match.

This commit is contained in:
Clint Adams 2002-02-08 08:30:09 +00:00
parent 9e0f74f07b
commit f50dfba2f2
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2002-02-08 Clint Adams <clint@zsh.org>
* Matt Zimmerman: 16590: Completion/Unix/Type/_dict_words:
use a prefix match instead of a "fuzzy-exact" match.
2002-02-07 Sven Wischnowsky <wischnow@zsh.org>
* 16582: Src/Zle/computil.c: fix for displaying matches in

View file

@ -4,7 +4,7 @@ local dict dictresult dictwords j expl
[[ -z $words[CURRENT] ]] && return 1
dictresults=(${${(f)${"$(dict -m $words[CURRENT])":gs/
dictresults=(${${(f)${"$(dict -m -s prefix $words[CURRENT])":gs/
/ /}}:#[0-9]*matches found})
for j in ${dictresults}