about summary refs log tree commit diff
path: root/Completion/User
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-18 11:04:34 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-18 11:04:34 +0000
commit191930e8fbcc4475e3345ca5c8e0281b70a3f96c (patch)
treec1872dbf00bab30e4391c5f4dd72ddfaaf647d71 /Completion/User
parentca670d4d27953588909d4b682eae5d7757bcf512 (diff)
downloadzsh-191930e8fbcc4475e3345ca5c8e0281b70a3f96c.tar.gz
zsh-191930e8fbcc4475e3345ca5c8e0281b70a3f96c.tar.xz
zsh-191930e8fbcc4475e3345ca5c8e0281b70a3f96c.zip
fix for completion of `netscape -remote' (11460)
Diffstat (limited to 'Completion/User')
-rw-r--r--Completion/User/_netscape12
1 files changed, 3 insertions, 9 deletions
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