diff options
author | dgp <dgp@users.sourceforge.net> | 2016-06-16 17:12:45 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2016-06-16 17:12:45 (GMT) |
commit | fe25eaf4025ec9453fb1e239471b9a5a950f6cf6 (patch) | |
tree | 0679e41842789c07c8c6d988f93f8732b049a736 /generic | |
parent | 624ec168ecde5fbdbe83e4e7c558805b408fabcc (diff) | |
parent | ac2ab0075f3bd2da55b9eb003f12455ca981df21 (diff) | |
download | tcl-fe25eaf4025ec9453fb1e239471b9a5a950f6cf6.zip tcl-fe25eaf4025ec9453fb1e239471b9a5a950f6cf6.tar.gz tcl-fe25eaf4025ec9453fb1e239471b9a5a950f6cf6.tar.bz2 |
[4b61afd660] Allow [info frame] to record line info for substituted command names.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclCompile.c | 4 |
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; |