diff options
author | fvogel <fvogelnew1@free.fr> | 2015-10-06 22:50:36 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2015-10-06 22:50:36 (GMT) |
commit | db927393be133f6ca8f29d626b39619eaf3859a8 (patch) | |
tree | 7fac782203379a735282c61dac8de3162c83261a /generic/tkText.c | |
parent | ead85a77f3c41d33c4b04fbdb987a5e59a860b77 (diff) | |
download | tk-db927393be133f6ca8f29d626b39619eaf3859a8.zip tk-db927393be133f6ca8f29d626b39619eaf3859a8.tar.gz tk-db927393be133f6ca8f29d626b39619eaf3859a8.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 f023509..cb89218 100644 --- a/generic/tkText.c +++ b/generic/tkText.c @@ -4196,7 +4196,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; } |