summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/xpafirstparser.tac
diff options
context:
space:
mode:
Diffstat (limited to 'ds9/parsers/xpafirstparser.tac')
-rw-r--r--ds9/parsers/xpafirstparser.tac2
1 files changed, 1 insertions, 1 deletions
diff --git a/ds9/parsers/xpafirstparser.tac b/ds9/parsers/xpafirstparser.tac
index 47d6c13..890e42f 100644
--- a/ds9/parsers/xpafirstparser.tac
+++ b/ds9/parsers/xpafirstparser.tac
@@ -22,7 +22,7 @@
#include yesno.trl
command : xpa
- | xpa {yyclearin; YYACCEPT} STRING_
+ | xpa {global ds9; if {!$ds9(init)} {YYERROR} else {yyclearin; YYACCEPT}} STRING_
;
xpa : yesno {ProcessCmdSet pds9 xpa $1}