diff options
author | fvogel <fvogelnew1@free.fr> | 2024-04-21 11:03:48 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2024-04-21 11:03:48 (GMT) |
commit | 6ea395a7edbf522e3049fb8a33c9a44c8744e423 (patch) | |
tree | 5dd9a72fdaa81b200fac2bd7c54d023e4a2253d0 /tests | |
parent | 27db51fecd833ecd4a918acb93e6055ebf70b206 (diff) | |
parent | 5f0874e27eff3a438da588170e32dfaf13831c83 (diff) | |
download | tk-6ea395a7edbf522e3049fb8a33c9a44c8744e423.zip tk-6ea395a7edbf522e3049fb8a33c9a44c8744e423.tar.gz tk-6ea395a7edbf522e3049fb8a33c9a44c8744e423.tar.bz2 |
Fix [ab839efc5f]: text edit undo: clearing text instead of restoring.
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 c5ab92b..ff83e6f 100644 --- a/tests/text.test +++ b/tests/text.test @@ -6967,6 +6967,21 @@ test text-27.25 {<<UndoStack>> virtual event} -setup { } -cleanup { destroy .t } -result {0 0 1 2 3 4 4 5 6 6 7 8 8 9} +test text-27.26 {bug ab839efc5f - .text edit undo inserts separators} -setup { + destroy .t +} -body { + text .t -undo 1 + .t insert 1.0 "1. 123 5 789012 LINE-1\n2.\n3. 123 5 789012 LINE-3\n" + .t tag add sel 3.0 3.end + .t delete sel.first sel.last + .t edit undo + .t tag add sel 3.0 3.end + .t delete sel.first sel.last + .t edit undo + .t get 3.0 3.end +} -cleanup { + destroy .t +} -result {3. 123 5 789012 LINE-3} test text-28.1 {bug fix - 624372, ControlUtfProc long lines} -body { |