diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-05-19 14:13:31 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-05-19 14:13:31 (GMT) |
commit | fac371b4d60af3609407c3cc9c8c9c20da2de7aa (patch) | |
tree | e647a829c39e6347ff879dae407ed1c7436ec5f2 /generic/tkTextIndex.c | |
parent | 62d7bec31f12d0c52208a06e39bc891125392a2b (diff) | |
parent | 51d384bfda7a3eb5a915b19d343c8bb657268d75 (diff) | |
download | tk-fac371b4d60af3609407c3cc9c8c9c20da2de7aa.zip tk-fac371b4d60af3609407c3cc9c8c9c20da2de7aa.tar.gz tk-fac371b4d60af3609407c3cc9c8c9c20da2de7aa.tar.bz2 |
Merge 8.6
Diffstat (limited to 'generic/tkTextIndex.c')
-rw-r--r-- | generic/tkTextIndex.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkTextIndex.c b/generic/tkTextIndex.c index 1db1208..70a53ae 100644 --- a/generic/tkTextIndex.c +++ b/generic/tkTextIndex.c @@ -436,7 +436,7 @@ TkTextMakeByteIndex( */ start = segPtr->body.chars + (byteIndex - index); - p = Tcl_UtfPrev(start, segPtr->body.chars); + p = TkUtfPrev(start, segPtr->body.chars); p += TkUtfToUniChar(p, &ch); indexPtr->byteIndex += p - start; } @@ -2125,7 +2125,7 @@ TkTextIndexBackChars( if (segPtr->typePtr == &tkTextCharType) { start = segPtr->body.chars; end = segPtr->body.chars + segSize; - for (p = end; ; p = Tcl_UtfPrev(p, start)) { + for (p = end; ; p = TkUtfPrev(p, start)) { if (charCount == 0) { dstPtr->byteIndex -= (end - p); goto backwardCharDone; @@ -2366,7 +2366,7 @@ StartEnd( } if (offset > 0) { chSize = (segPtr->body.chars + offset - - Tcl_UtfPrev(segPtr->body.chars + offset, + - TkUtfPrev(segPtr->body.chars + offset, segPtr->body.chars)); } firstChar = 0; |