diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-09-03 09:16:54 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-09-03 09:16:54 +0000 |
commit | 61864a802fe59f0ec90dad38e1846ef645b0011e (patch) | |
tree | 8f80308514e9b574b02ce1d2aa8673d2e871c75c | |
parent | 0cba5ef62ad8e98924c2bd9367f9c7c7e72e2fd0 (diff) | |
download | zsh-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-- | ChangeLog | 4 | ||||
-rw-r--r-- | Completion/Zsh/Command/_alias | 2 |
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 |