diff options
| author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2002-01-28 16:34:12 +0000 |
|---|---|---|
| committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2002-01-28 16:34:12 +0000 |
| commit | a2deb3854abfa4ef29fa35ab280399b10a17161a (patch) | |
| tree | 4d0a989e1563c31936304423e373eccc1fa1a8be | |
| parent | 16503: warn on fclose or fflush errors in bin_print. (diff) | |
| download | zsh-a2deb3854abfa4ef29fa35ab280399b10a17161a.tar zsh-a2deb3854abfa4ef29fa35ab280399b10a17161a.tar.gz zsh-a2deb3854abfa4ef29fa35ab280399b10a17161a.tar.bz2 zsh-a2deb3854abfa4ef29fa35ab280399b10a17161a.tar.lz zsh-a2deb3854abfa4ef29fa35ab280399b10a17161a.tar.xz zsh-a2deb3854abfa4ef29fa35ab280399b10a17161a.tar.zst zsh-a2deb3854abfa4ef29fa35ab280399b10a17161a.zip | |
slight improvement for 16500 to allow completion after ./<TAB> in all cases (16507)
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | Completion/Zsh/Type/_command_names | 7 |
2 files changed, 6 insertions, 6 deletions
@@ -1,3 +1,8 @@ +2002-01-28 Sven Wischnowsky <wischnow@zsh.org> + + * 16507: Completion/Zsh/Type/_command_names: slight improvement + for 16500 to allow completion after ./<TAB> in all cases + 2002-01-27 Clint Adams <clint@zsh.org> * 16503: Src/builtin.c: warn on fclose or fflush diff --git a/Completion/Zsh/Type/_command_names b/Completion/Zsh/Type/_command_names index 71c3adfd2..613f1fe59 100644 --- a/Completion/Zsh/Type/_command_names +++ b/Completion/Zsh/Type/_command_names @@ -10,15 +10,10 @@ defs=( 'commands:external command:compadd -k commands' ) -if [[ -n "$path[(r).]" ]]; then +[[ -n "$path[(r).]" || $PREFIX = */* ]] && defs=( "$defs[@]" 'executables:executable file or directory:_path_files -/g \*\(-\*\)' ) -else - defs=( "$defs[@]" - 'executables:executable file or directory:_files -P/ -W/ -/g \*\(-\*\)' - ) -fi if [[ "$1" = -e ]]; then shift |
