about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-09-03 09:16:54 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-09-03 09:16:54 +0000
commit61864a802fe59f0ec90dad38e1846ef645b0011e (patch)
tree8f80308514e9b574b02ce1d2aa8673d2e871c75c
parent0cba5ef62ad8e98924c2bd9367f9c7c7e72e2fd0 (diff)
downloadzsh-61864a802fe59f0ec90dad38e1846ef645b0011e.tar.gz
zsh-61864a802fe59f0ec90dad38e1846ef645b0011e.tar.xz
zsh-61864a802fe59f0ec90dad38e1846ef645b0011e.zip
Jörg Sommer <joerg@alea.gnuu.de>: 25598/25599:
auto-remove automatically added = in alias completion
-rw-r--r--ChangeLog4
-rw-r--r--Completion/Zsh/Command/_alias2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 7f0023247..92b582737 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2008-09-03  Peter Stephenson  <pws@csr.com>
 
+	* Jörg Sommer <joerg@alea.gnuu.de>: 25598/25599: should
+	auto-remove automatically added "=" suffix on alias completion,
+	else you can end up assigning an empty alias.
+
 	* 25595: Doc/Zsh/mod_parameter.yo, Src/builtin.c, Src/exec.c,
 	Src/init.c, Src/zsh.h, Src/Modules/parameter.c,
 	Test/V06parameter.ztst: fix line numbers with EVAL_LINENO;
diff --git a/Completion/Zsh/Command/_alias b/Completion/Zsh/Command/_alias
index c7b67c40a..617627cbe 100644
--- a/Completion/Zsh/Command/_alias
+++ b/Completion/Zsh/Command/_alias
@@ -19,6 +19,6 @@ if [[ -n "$state" ]]; then
     compset -S '=*' || suf='='
     type=( ${opt_args[(i)[-+][grs]]#?} )
     (( $#type )) && type=( -s $type )
-    _wanted -x alias expl 'alias definition' _aliases -S "$suf" "$type[@]"
+    _wanted -x alias expl 'alias definition' _aliases -qS "$suf" "$type[@]"
   fi
 fi