about summary refs log tree commit diff
path: root/Completion/X
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-09-07 12:54:47 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-09-07 12:54:47 +0000
commit6cc1204ea97b3c02da1b3d2a4df93712f0c5fefb (patch)
treea6d4da4a9a1342461ad90d298b64b04b3bc67f8d /Completion/X
parent77f9967f32aa39ea0290162e0c3921a0ebca394e (diff)
downloadzsh-6cc1204ea97b3c02da1b3d2a4df93712f0c5fefb.tar.gz
zsh-6cc1204ea97b3c02da1b3d2a4df93712f0c5fefb.tar.xz
zsh-6cc1204ea97b3c02da1b3d2a4df93712f0c5fefb.zip
zsh-workers/7690
Diffstat (limited to 'Completion/X')
-rw-r--r--Completion/X/_x_arguments8
-rw-r--r--Completion/X/_xt_arguments8
2 files changed, 16 insertions, 0 deletions
diff --git a/Completion/X/_x_arguments b/Completion/X/_x_arguments
index 23243002c..396a39ea2 100644
--- a/Completion/X/_x_arguments
+++ b/Completion/X/_x_arguments
@@ -1,6 +1,14 @@
 #compdef -P */X11/*
 
+local ret
+
 _arguments \
   '-display:display:_x_display' \
   '-geometry:geometry:_x_geometry' \
   "$@"
+
+ret=$?
+
+[[ "$ret" = 300 ]] && compstate[restore]=''
+
+return ret
diff --git a/Completion/X/_xt_arguments b/Completion/X/_xt_arguments
index 6ed8b9d27..2604cfa83 100644
--- a/Completion/X/_xt_arguments
+++ b/Completion/X/_xt_arguments
@@ -20,6 +20,8 @@
 
 # cf. XrmParseCommand(3X11), X11R6.4/xc/lib/Xt/Initialize.c, X(5)
 
+local ret
+
 _arguments \
   -+{rv,synchronous} \
   -{reverse,iconic} \
@@ -42,3 +44,9 @@ _arguments \
   '-xrm:resource:_x_resource' \
   '-xtsessionID:session ID:_xt_session_id' \
   "$@"
+
+ret=$?
+
+[[ "$ret" = 300 ]] && compstate[restore]=''
+
+return ret