From f50dfba2f26a90966a53ba9a8cd43f322ba0a14c Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Fri, 8 Feb 2002 08:30:09 +0000 Subject: 16590: use a prefix match instead of a "fuzzy-exact" match. --- ChangeLog | 5 +++++ Completion/Unix/Type/_dict_words | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 74ef69eb8..ed3861f48 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-02-08 Clint Adams + + * Matt Zimmerman: 16590: Completion/Unix/Type/_dict_words: + use a prefix match instead of a "fuzzy-exact" match. + 2002-02-07 Sven Wischnowsky * 16582: Src/Zle/computil.c: fix for displaying matches in diff --git a/Completion/Unix/Type/_dict_words b/Completion/Unix/Type/_dict_words index 44448e8f8..770319036 100644 --- a/Completion/Unix/Type/_dict_words +++ b/Completion/Unix/Type/_dict_words @@ -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} -- cgit 1.4.1