diff options
author | dgp <dgp@noemail.net> | 2015-04-09 12:51:51 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2015-04-09 12:51:51 (GMT) |
commit | 366f00d4a312d2852c84d0b767145669f3e8e9e7 (patch) | |
tree | c81c0289058629d93a5ba6acec83816bd44a6299 /tests/textIndex.test | |
parent | 428c1cd6d27bf09feb46c0cdb89414ac53830c06 (diff) | |
parent | a246980eebbfa9d7027e481f90beb25ec90fc0c8 (diff) | |
download | tk-366f00d4a312d2852c84d0b767145669f3e8e9e7.zip tk-366f00d4a312d2852c84d0b767145669f3e8e9e7.tar.gz tk-366f00d4a312d2852c84d0b767145669f3e8e9e7.tar.bz2 |
[562118ce41] Fix wordstart modifier handling of multi-byte chars
FossilOrigin-Name: 8becf1a0224f88d0668a2af29e12e73a3cd037ac
Diffstat (limited to 'tests/textIndex.test')
-rw-r--r-- | tests/textIndex.test | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/textIndex.test b/tests/textIndex.test index dead9c1..465f097 100644 --- a/tests/textIndex.test +++ b/tests/textIndex.test @@ -905,6 +905,16 @@ test textIndex-22.12 {text index wordstart, unicode} { test textIndex-22.13 {text index wordstart, unicode} { text_test_word wordstart "\uc700\uc700 abc" 8 } 3 +test textIndex-22.14 {text index wordstart, unicode, start index at internal segment start} { + catch {destroy .t} + text .t + .t insert end "C'est du texte en fran\u00e7ais\n" + .t insert end "\u042D\u0442\u043E\u0020\u0442\u0435\u043A\u0441\u0442\u0020\u043D\u0430\u0020\u0440\u0443\u0441\u0441\u043A\u043E\u043C" + .t mark set insert 1.23 + set res [.t index "1.23 wordstart"] + .t mark set insert 2.16 + lappend res [.t index "2.16 wordstart"] [.t index "2.15 wordstart"] +} {1.18 2.13 2.13} test textIndex-22.15 {text index display wordstart} { catch {destroy .t} text .t |