diff options
author | dgp <dgp@users.sourceforge.net> | 2016-03-11 15:40:45 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2016-03-11 15:40:45 (GMT) |
commit | b1d25860c469bbaccef10bb6a596fb93d397b2b0 (patch) | |
tree | 37b2ecabd2197f5ce126d81bd29eefd5e1c36a4c | |
parent | c31b2f4c54d596aafee955890527c1b2406093b1 (diff) | |
download | tcl-b1d25860c469bbaccef10bb6a596fb93d397b2b0.zip tcl-b1d25860c469bbaccef10bb6a596fb93d397b2b0.tar.gz tcl-b1d25860c469bbaccef10bb6a596fb93d397b2b0.tar.bz2 |
Simple change gets most of the effect. Fails to handle backslash. anyone care?bug_1a25fdfec6
-rw-r--r-- | generic/tclCompCmdsGR.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclCompCmdsGR.c b/generic/tclCompCmdsGR.c index e674fb0..87ed745 100644 --- a/generic/tclCompCmdsGR.c +++ b/generic/tclCompCmdsGR.c @@ -2966,10 +2966,12 @@ IndexTailVarIfKnown( } else { full = 0; lastTokenPtr = varTokenPtr + n; - if (!TclWordKnownAtCompileTime(lastTokenPtr, tailPtr)) { + + if (lastTokenPtr->type != TCL_TOKEN_TEXT) { Tcl_DecrRefCount(tailPtr); return -1; } + Tcl_SetStringObj(tailPtr, lastTokenPtr->start, lastTokenPtr->size); } tailName = TclGetStringFromObj(tailPtr, &len); |