summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/maskparser.tac
diff options
context:
space:
mode:
Diffstat (limited to 'ds9/parsers/maskparser.tac')
-rw-r--r--ds9/parsers/maskparser.tac2
1 files changed, 1 insertions, 1 deletions
diff --git a/ds9/parsers/maskparser.tac b/ds9/parsers/maskparser.tac
index c42ce3c..4759e50 100644
--- a/ds9/parsers/maskparser.tac
+++ b/ds9/parsers/maskparser.tac
@@ -19,7 +19,7 @@
#include numeric.trl
command : mask
- | mask {yyclearin; YYACCEPT} STRING_
+ | mask {global ds9; if {!$ds9(init)} {YYERROR} else {yyclearin; YYACCEPT}} STRING_
;
mask : {global parse; set parse(result) mask}