diff options
author | Andrés <andmarti@gmail.com> | 2022-03-23 11:03:21 -0300 |
---|---|---|
committer | Andrés <andmarti@gmail.com> | 2022-03-23 11:03:21 -0300 |
commit | b95b1f509175eb183d76cb794f26ad7f358f611a (patch) | |
tree | 42fe6c31eca83290e8e76d5806d8ff652b7ebf82 /src | |
parent | da856288cdc1f76e8dec5c715783c6d3a4058f74 (diff) |
work on issue 697
Diffstat (limited to 'src')
-rwxr-xr-x | src/gram.y | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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); } |