From abbab23ae41fa0630083c5fba22188f20ed81eb9 Mon Sep 17 00:00:00 2001 From: kichik Date: Mon, 22 Sep 2003 10:09:48 +0000 Subject: [PATCH] Ignore all commands but those who start with an exclamation mark in nested ignored if blocks too git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2946 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/script.cpp b/Source/script.cpp index 27525845..36f3fb83 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -238,7 +238,7 @@ int CEXEBuild::doParse(const char *str) while (*str == ' ' || *str == '\t') str++; // if ignoring, ignore all lines that don't begin with !. - if (cur_ifblock && cur_ifblock->ignore && *str!='!' && !last_line_had_slash) return PS_OK; + if (cur_ifblock && (cur_ifblock->ignore || cur_ifblock->inherited_ignore) && *str!='!' && !last_line_had_slash) return PS_OK; if (m_linebuild.getlen()>1) m_linebuild.resize(m_linebuild.getlen()-2);