about summary refs log tree commit diff
path: root/Completion/X/_xt_arguments
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/X/_xt_arguments')
-rw-r--r--Completion/X/_xt_arguments8
1 files changed, 8 insertions, 0 deletions
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