about summary refs log tree commit diff
diff options
context:
space:
mode:
-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