diff options
author | fvogel <fvogelnew1@free.fr> | 2015-10-09 19:28:10 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2015-10-09 19:28:10 (GMT) |
commit | 5f8596f5fb930c8f6a533892ea7348ba6afe6e27 (patch) | |
tree | 05391ab62b76a2bd1fc3c2912a5f319b2564fdda /generic/tkText.c | |
parent | 9a586b5b43877b366a0a0e675e9031bb37c64ed5 (diff) | |
parent | 6a89354818ae034dde6cd0576e8945f2789e7e33 (diff) | |
download | tk-5f8596f5fb930c8f6a533892ea7348ba6afe6e27.zip tk-5f8596f5fb930c8f6a533892ea7348ba6afe6e27.tar.gz tk-5f8596f5fb930c8f6a533892ea7348ba6afe6e27.tar.bz2 |
Fixed bug [2262711fff] - Regexp search fails with Unicode and elide
Diffstat (limited to 'generic/tkText.c')
-rw-r--r-- | generic/tkText.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/tkText.c b/generic/tkText.c index d93d8fc..b002068 100644 --- a/generic/tkText.c +++ b/generic/tkText.c @@ -4234,7 +4234,11 @@ TextSearchFoundMatch( matchOffset += Tcl_NumUtfChars(segPtr->body.chars, -1); } } else { - leftToScan -= segPtr->size; + if (searchSpecPtr->exact) { + leftToScan -= segPtr->size; + } else { + leftToScan -= Tcl_NumUtfChars(segPtr->body.chars, -1); + } } curIndex.byteIndex += segPtr->size; } |