summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r--generic/tclCompile.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index 0dc30e2..cbb93d9 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.c
@@ -1819,9 +1819,6 @@ CompileCommandTokens(
envPtr->line = eclPtr->loc[wlineat].line[0];
envPtr->clNext = eclPtr->loc[wlineat].next[0];
- if (expand && !cmdPtr) {
- StartExpanding(envPtr);
- }
if (cmdPtr) {
int savedNumCmds = envPtr->numCommands;
int update = 0;
@@ -1919,11 +1916,10 @@ CompileCommandTokens(
envPtr->line = eclPtr->loc[wlineat].line[0];
envPtr->clNext = eclPtr->loc[wlineat].next[0];
+ }
- /* TODO: Can this happen? If so, is this right? */
- if (expand) {
- StartExpanding(envPtr);
- }
+ if (expand) {
+ StartExpanding(envPtr);
}
/*