summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2016-06-16 17:12:45 (GMT)
committerdgp <dgp@users.sourceforge.net>2016-06-16 17:12:45 (GMT)
commit751453253c294acfe666b12a2216b54922d310e8 (patch)
tree0679e41842789c07c8c6d988f93f8732b049a736 /generic/tclCompile.c
parentfa88074963b9c9551a70632a1052b949a9b6b063 (diff)
parentd418226edb26ced6ce6d46dffe7364795280f48e (diff)
downloadtcl-751453253c294acfe666b12a2216b54922d310e8.zip
tcl-751453253c294acfe666b12a2216b54922d310e8.tar.gz
tcl-751453253c294acfe666b12a2216b54922d310e8.tar.bz2
[4b61afd660] Allow [info frame] to record line info for substituted command names.
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r--generic/tclCompile.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index 5030f89..eeee1b0 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.c
@@ -2602,8 +2602,10 @@ EnterCmdWordData(
TclAdvanceLines (&wordLine, last, tokenPtr->start);
TclAdvanceContinuations (&wordLine, &wordNext,
tokenPtr->start - envPtr->source);
+ /* See Ticket 4b61afd660 */
wwlines[wordIdx] =
- (TclWordKnownAtCompileTime(tokenPtr, NULL) ? wordLine : -1);
+ ((wordIdx == 0) || TclWordKnownAtCompileTime(tokenPtr, NULL))
+ ? wordLine : -1;
ePtr->line[wordIdx] = wordLine;
ePtr->next[wordIdx] = wordNext;
last = tokenPtr->start;