summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/bgparser.tac
diff options
context:
space:
mode:
Diffstat (limited to 'ds9/parsers/bgparser.tac')
-rw-r--r--ds9/parsers/bgparser.tac2
1 files changed, 1 insertions, 1 deletions
diff --git a/ds9/parsers/bgparser.tac b/ds9/parsers/bgparser.tac
index b28a554..fd71ef9 100644
--- a/ds9/parsers/bgparser.tac
+++ b/ds9/parsers/bgparser.tac
@@ -9,7 +9,7 @@
%%
command : bg
- | bg {yyclearin; YYACCEPT} STRING_
+ | bg {global ds9; if {!$ds9(init)} {YYERROR} else {yyclearin; YYACCEPT}} STRING_
;
bg : STRING_ {ProcessCmdSet pds9 bg $1 PrefsBgColor}