summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/cmapparser.tac
diff options
context:
space:
mode:
Diffstat (limited to 'ds9/parsers/cmapparser.tac')
-rw-r--r--ds9/parsers/cmapparser.tac2
1 files changed, 1 insertions, 1 deletions
diff --git a/ds9/parsers/cmapparser.tac b/ds9/parsers/cmapparser.tac
index b3a78fb..43a8219 100644
--- a/ds9/parsers/cmapparser.tac
+++ b/ds9/parsers/cmapparser.tac
@@ -26,7 +26,7 @@
#include numeric.trl
command : cmap
- | cmap {yyclearin; YYACCEPT} STRING_
+ | cmap {global ds9; if {!$ds9(init)} {YYERROR} else {yyclearin; YYACCEPT}} STRING_
;
cmap : cmapSelect