diff options
author | dgp <dgp@users.sourceforge.net> | 2016-06-16 16:59:09 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2016-06-16 16:59:09 (GMT) |
commit | d418226edb26ced6ce6d46dffe7364795280f48e (patch) | |
tree | d7b91cce5052518604586c81a15019913ed3e301 /generic/tclCompile.c | |
parent | bdfafd3539b5d5762bca9907ad9e6bb4f0e347cf (diff) | |
download | tcl-d418226edb26ced6ce6d46dffe7364795280f48e.zip tcl-d418226edb26ced6ce6d46dffe7364795280f48e.tar.gz tcl-d418226edb26ced6ce6d46dffe7364795280f48e.tar.bz2 |
Improve fix and add test.
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r-- | generic/tclCompile.c | 7 |
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; |