summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2016-06-16 16:59:09 (GMT)
committerdgp <dgp@users.sourceforge.net>2016-06-16 16:59:09 (GMT)
commitac2ab0075f3bd2da55b9eb003f12455ca981df21 (patch)
treed7b91cce5052518604586c81a15019913ed3e301 /generic/tclCompile.c
parent38f75a878db647a16f5198d88806af3e2cc1a9dd (diff)
downloadtcl-ac2ab0075f3bd2da55b9eb003f12455ca981df21.zip
tcl-ac2ab0075f3bd2da55b9eb003f12455ca981df21.tar.gz
tcl-ac2ab0075f3bd2da55b9eb003f12455ca981df21.tar.bz2
Improve fix and add test.bug_4b61afd660
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r--generic/tclCompile.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index 8cdd9d2..31e69ad 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.c
@@ -2602,12 +2602,9 @@ EnterCmdWordData(
TclAdvanceLines (&wordLine, last, tokenPtr->start);
TclAdvanceContinuations (&wordLine, &wordNext,
tokenPtr->start - envPtr->source);
-#if 0
wwlines[wordIdx] =
- (TclWordKnownAtCompileTime(tokenPtr, NULL) ? wordLine : -1);
-#else
- wwlines[wordIdx] = wordLine;
-#endif
+ ((wordIdx == 0) || TclWordKnownAtCompileTime(tokenPtr, NULL))
+ ? wordLine : -1;
ePtr->line[wordIdx] = wordLine;
ePtr->next[wordIdx] = wordNext;
last = tokenPtr->start;