summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/matchparser.tac
diff options
context:
space:
mode:
Diffstat (limited to 'ds9/parsers/matchparser.tac')
-rw-r--r--ds9/parsers/matchparser.tac2
1 files changed, 1 insertions, 1 deletions
diff --git a/ds9/parsers/matchparser.tac b/ds9/parsers/matchparser.tac
index e88841a..997bd7d 100644
--- a/ds9/parsers/matchparser.tac
+++ b/ds9/parsers/matchparser.tac
@@ -27,7 +27,7 @@
#include wcssys.trl
command : match
- | match {yyclearin; YYACCEPT} STRING_
+ | match {global ds9; if {!$ds9(init)} {YYERROR} else {yyclearin; YYACCEPT}} STRING_
;
match : FRAME_ match {MatchFrameCurrent $2}