about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2002-02-08 08:30:09 +0000
committerClint Adams <clint@users.sourceforge.net>2002-02-08 08:30:09 +0000
commitf50dfba2f26a90966a53ba9a8cd43f322ba0a14c (patch)
tree72f9adf121182ea6651b4e686c9b4948b1cd44ee
parent9e0f74f07b3cb95cc6aacc413b1ac1373c5fcf9a (diff)
downloadzsh-f50dfba2f26a90966a53ba9a8cd43f322ba0a14c.tar.gz
zsh-f50dfba2f26a90966a53ba9a8cd43f322ba0a14c.tar.xz
zsh-f50dfba2f26a90966a53ba9a8cd43f322ba0a14c.zip
16590: use a prefix match instead of a "fuzzy-exact" match.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Type/_dict_words2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 74ef69eb8..ed3861f48 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
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}