summaryrefslogtreecommitdiffstats
path: root/Completion/User/_netscape
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-11-22 17:54:30 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-11-22 17:54:30 +0000
commite779e0135d041d2cadc86509eed4f8cb46c90efc (patch)
tree445e877be9d73556a054d5026de513b0d441f811 /Completion/User/_netscape
parentzsh-workers/8725 (diff)
downloadzsh-e779e0135d041d2cadc86509eed4f8cb46c90efc.tar
zsh-e779e0135d041d2cadc86509eed4f8cb46c90efc.tar.gz
zsh-e779e0135d041d2cadc86509eed4f8cb46c90efc.tar.bz2
zsh-e779e0135d041d2cadc86509eed4f8cb46c90efc.tar.lz
zsh-e779e0135d041d2cadc86509eed4f8cb46c90efc.tar.xz
zsh-e779e0135d041d2cadc86509eed4f8cb46c90efc.tar.zst
zsh-e779e0135d041d2cadc86509eed4f8cb46c90efc.zip
zsh-workers/8726
Diffstat (limited to 'Completion/User/_netscape')
-rw-r--r--Completion/User/_netscape11
1 files 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