From 7382f0fa628f979d209ccfed7327f7a1c07e93c2 Mon Sep 17 00:00:00 2001 From: h_vogt Date: Sat, 25 Jun 2016 14:39:36 +0200 Subject: [PATCH] inp.c, fix option handling in user defined script (*ng_script) similar to .control section of circuit file: process 'option' command immediately, just like any other command. --- src/frontend/inp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/inp.c b/src/frontend/inp.c index 907fc9a2a..e7e83f57e 100644 --- a/src/frontend/inp.c +++ b/src/frontend/inp.c @@ -383,8 +383,8 @@ inp_spsource(FILE *fp, bool comfile, char *filename, bool intfile) if (!ciprefix(".control", dd->li_line) && !ciprefix(".endc", dd->li_line)) { if (dd->li_line[0] == '*') cp_evloop(dd->li_line + 2); - /* option line stored but not processed */ - else if (ciprefix("option", dd->li_line)) + /* option line stored but not processed, if script does not start with '*ng_script' */ + else if (ciprefix("option", dd->li_line) && !ciprefix("*ng_script", deck->li_line)) com_options = inp_getoptsc(dd->li_line, com_options); else cp_evloop(dd->li_line);