From 191930e8fbcc4475e3345ca5c8e0281b70a3f96c Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Thu, 18 May 2000 11:04:34 +0000 Subject: fix for completion of `netscape -remote' (11460) --- ChangeLog | 3 +++ Completion/User/_netscape | 12 +++--------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1e21e0d3b..21b422df7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2000-05-18 Sven Wischnowsky + * 11460: Completion/User/_netscape: fix for completion of + `netscape -remote' + * 11459: Completion/Core/_main_complete, Doc/Zsh/compsys.yo: allow _main_complete to call an arbitrary command given as arguments diff --git a/Completion/User/_netscape b/Completion/User/_netscape index ed2bccc75..33db18aee 100644 --- a/Completion/User/_netscape +++ b/Completion/User/_netscape @@ -56,15 +56,9 @@ if [[ "$state" = "remote" ]]; then fi ;; *) - if [[ -z "$QIPREFIX" ]]; then - _wanted commands expl 'remote commands' \ - compadd -s'(' -S '' -M 'm:{a-zA-Z}={A-Za-z}' - \ - $remote_commands && ret=0 - else - _wanted commands expl 'remote commands' \ - compadd -qS '(' -M 'm:{a-zA-Z}={A-Za-z}' - \ - $remote_commands && ret=0 - fi + _wanted commands expl 'remote commands' \ + compadd -qS "${${QIPREFIX:+(}:-\(}" -M 'm:{a-zA-Z}={A-Za-z}' - \ + $remote_commands && ret=0 ;; esac fi -- cgit 1.4.1