summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-04-26 21:18:02 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-04-26 21:18:02 (GMT)
commit3c8ae9a97be0af9501ae94177c0e8c179ee2f87f (patch)
treeff4cb795dc300b1d7dfac26a96caf6af7f9d425a /tests
parentcd36bc9bce33caf13401d72a8b8a29f67d125b2c (diff)
parent6ea395a7edbf522e3049fb8a33c9a44c8744e423 (diff)
downloadtk-3c8ae9a97be0af9501ae94177c0e8c179ee2f87f.zip
tk-3c8ae9a97be0af9501ae94177c0e8c179ee2f87f.tar.gz
tk-3c8ae9a97be0af9501ae94177c0e8c179ee2f87f.tar.bz2
Merge 8.6
Diffstat (limited to 'tests')
-rw-r--r--tests/text.test16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/text.test b/tests/text.test
index 5f574c0..2303729 100644
--- a/tests/text.test
+++ b/tests/text.test
@@ -7039,7 +7039,21 @@ test text-27.28 {edit undo and edit redo do not leave \
} -cleanup {
destroy .t
} -result {1 1}
-
+test text-27.29 {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 {
pack [text .t -wrap none]