diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-11-22 17:54:30 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-11-22 17:54:30 +0000 |
commit | e779e0135d041d2cadc86509eed4f8cb46c90efc (patch) | |
tree | 445e877be9d73556a054d5026de513b0d441f811 /Completion/User/_netscape | |
parent | f65474d1bc73accb145ef8afe72d19103abeb1bf (diff) | |
download | zsh-e779e0135d041d2cadc86509eed4f8cb46c90efc.tar.gz zsh-e779e0135d041d2cadc86509eed4f8cb46c90efc.tar.xz zsh-e779e0135d041d2cadc86509eed4f8cb46c90efc.zip |
zsh-workers/8726
Diffstat (limited to 'Completion/User/_netscape')
-rw-r--r-- | Completion/User/_netscape | 11 |
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 |