diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-01-19 05:43:46 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-01-19 05:43:46 (GMT) |
commit | 074b536bf14a8c7eaf960ab7d72017cdc2380690 (patch) | |
tree | 648d9de77846c88ee5a8cf4b10dcb05107aac3a8 /tests | |
parent | b5440b5836c841107c7ddafdc0e7411e9ad857b3 (diff) | |
parent | 0dcdb6e905be50ac2bc4728134739cad781a1ea8 (diff) | |
download | tk-074b536bf14a8c7eaf960ab7d72017cdc2380690.zip tk-074b536bf14a8c7eaf960ab7d72017cdc2380690.tar.gz tk-074b536bf14a8c7eaf960ab7d72017cdc2380690.tar.bz2 |
[Bug-3021557]: Moving the cursor in elided text freezes Tk
Diffstat (limited to 'tests')
-rw-r--r-- | tests/text.test | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/text.test b/tests/text.test index 17fcf29..44a3065 100644 --- a/tests/text.test +++ b/tests/text.test @@ -684,6 +684,21 @@ test text-9.2.43 {TextWidgetCmd procedure, "count" option} { .t count -lines -chars -indices -displaylines 1.0 end } {3 903 903 45} .t configure -wrap none +test text-9.2.44 {TextWidgetCmd procedure, "count" option} -setup { + .t delete 1.0 end + update + set res {} +} -body { + .t insert end "Line 1 - This is Line 1\n" + .t insert end "Line 2 - This is Line 2\n" + .t insert end "Line 3 - This is Line 3\n" + .t insert end "Line 4 - This is Line 4\n" + .t insert end "Line 5 - This is Line 5\n" + lappend res [.t count -displaylines 1.19 3.24] [.t count -displaylines 1.0 end] + .t tag add hidden 2.9 3.17 + .t tag configure hidden -elide true + lappend res [.t count -displaylines 1.19 3.24] [.t count -displaylines 1.0 end] +} -result {2 6 2 5} # Newer tags are higher priority .t tag configure elide1 -elide 0 |