summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrés <andmarti@gmail.com>2022-03-23 11:03:21 -0300
committerAndrés <andmarti@gmail.com>2022-03-23 11:03:21 -0300
commitb95b1f509175eb183d76cb794f26ad7f358f611a (patch)
tree42fe6c31eca83290e8e76d5806d8ff652b7ebf82 /src
parentda856288cdc1f76e8dec5c715783c6d3a4058f74 (diff)
work on issue 697
Diffstat (limited to 'src')
-rwxr-xr-xsrc/gram.y10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gram.y b/src/gram.y
index 4d53654..6e2d9d3 100755
--- a/src/gram.y
+++ b/src/gram.y
@@ -1631,10 +1631,12 @@ setitem :
{ if ($3 == 0) parse_str(user_conf_d, "xlsx_readformulas=0", TRUE);
else parse_str(user_conf_d, "xlsx_readformulas=1", TRUE); }
| K_NOXLSX_READFORMULAS { parse_str(user_conf_d, "xlsx_readformulas=0", TRUE); }
- | K_NOCURSES { parse_str(user_conf_d, "nocurses=1", TRUE); }
- | K_NOCURSES '=' NUMBER { if ($3 == 0) parse_str(user_conf_d, "nocurses=0", TRUE);
- else parse_str(user_conf_d, "nocurses=1", TRUE); }
- | K_CURSES { parse_str(user_conf_d, "nocurses=0", TRUE); }
+ | K_NOCURSES { if (! session->cur_doc->loading) parse_str(user_conf_d, "nocurses=1", TRUE); }
+ | K_NOCURSES '=' NUMBER { if (! session->cur_doc->loading) {
+ if ($3 == 0) parse_str(user_conf_d, "nocurses=0", TRUE);
+ else parse_str(user_conf_d, "nocurses=1", TRUE); }
+ }
+ | K_CURSES { if (! session->cur_doc->loading) parse_str(user_conf_d, "nocurses=0", TRUE); }
| K_NUMERIC { parse_str(user_conf_d, "numeric=1", TRUE); }
| K_NUMERIC '=' NUMBER { if ($3 == 0) parse_str(user_conf_d, "numeric=0", TRUE);
else parse_str(user_conf_d, "numeric=1", TRUE); }