From e779e0135d041d2cadc86509eed4f8cb46c90efc Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Mon, 22 Nov 1999 17:54:30 +0000 Subject: zsh-workers/8726 --- Completion/User/_netscape | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Completion/User/_netscape b/Completion/User/_netscape index 2f0537133..9dc3873a0 100644 --- a/Completion/User/_netscape +++ b/Completion/User/_netscape @@ -43,7 +43,6 @@ if [[ "$state" = "remote" ]]; then _wanted types expl 'data type' && compadd -s")" -M 'm:{a-zA-Z}={A-Za-z}' HTML Text PostScript && ret=0 - fi else _tags files && _path_files -W ~ && ret=0 fi @@ -53,19 +52,17 @@ if [[ "$state" = "remote" ]]; then if compset -P '*@'; then _wanted hosts expl 'remote host name' && _hosts "$expl[@]" -q -S, && ret=0 - fi else _wanted users expl 'login name' && _users "$expl[@]" -q -S@ && ret=0 - fi fi ;; *) if _wanted commands expl 'remote commands'; then - if [[ "$QIPREFIX" ]]; then - compadd "$expl[@]" -qS '(' -M 'm:{a-zA-Z}={A-Za-z}' - \ + if [[ -z "$QIPREFIX" ]]; then + compadd "$expl[@]" -s'(' -S '' -M 'm:{a-zA-Z}={A-Za-z}' - \ $remote_commands && ret=0 else - compadd "$expl[@]" -s'(' -S '' -M 'm:{a-zA-Z}={A-Za-z}' - \ + compadd "$expl[@]" -qS '(' -M 'm:{a-zA-Z}={A-Za-z}' - \ $remote_commands && ret=0 fi fi @@ -75,7 +72,7 @@ fi if [[ "$state" = "urls" ]]; then # Complete netscape urls - if compset about: ; then + if compset -P about: ; then _wanted values expl 'about what' && compadd authors blank cache document fonts global hype image-cache \ license logo memory-cache mozilla plugins && ret=0 -- cgit 1.4.1