diff options
author | fvogel <fvogelnew1@free.fr> | 2015-07-13 10:15:37 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2015-07-13 10:15:37 (GMT) |
commit | f7105592f47bceb3f0ea73278c95f1ed28d44f46 (patch) | |
tree | d70d1a6b047c6e84d8094bb649a2dc979f78d867 /tests/textIndex.test | |
parent | c8892b4b6e4ca47cc063d0ac3a7ee45e25906738 (diff) | |
parent | 69e335c589a30090cf64ea3a388b4d04f3d36248 (diff) | |
download | tk-f7105592f47bceb3f0ea73278c95f1ed28d44f46.zip tk-f7105592f47bceb3f0ea73278c95f1ed28d44f46.tar.gz tk-f7105592f47bceb3f0ea73278c95f1ed28d44f46.tar.bz2 |
Fixed bug [3f1f79abcf] - Text widget crash when seeing or bboxing (or selecting, moving the cursor...) in elided text
Diffstat (limited to 'tests/textIndex.test')
-rw-r--r-- | tests/textIndex.test | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/textIndex.test b/tests/textIndex.test index 465f097..83a249e 100644 --- a/tests/textIndex.test +++ b/tests/textIndex.test @@ -943,6 +943,19 @@ test textIndex-24.1 {text mark prev} { set res } {1.0} +test textIndex-25.1 {IndexCountBytesOrdered, bug [3f1f79abcf]} { + pack [text .t2] + .t2 tag configure elided -elide 1 + .t2 insert end "01\n02\n03\n04\n05\n06\n07\n08\n09\n10\n" + .t2 insert end "11\n12\n13\n14\n15\n16\n17\n18\n19\n20\n" + .t2 insert end "21\n22\n23\n25\n26\n27\n28\n29\n30\n31" + .t2 insert end "32\n33\n34\n36\n37\n38\n39" elided + # then this used to crash Tk: + .t2 see end + focus -force .t2 ; # to see the cursor blink + destroy .t2 +} {} + # cleanup rename textimage {} catch {destroy .t} |