summaryrefslogtreecommitdiffstats
path: root/tests/text.test
diff options
context:
space:
mode:
authorhobbs <hobbs>2006-04-05 19:48:43 (GMT)
committerhobbs <hobbs>2006-04-05 19:48:43 (GMT)
commitf88e67c4c39b7758bad240fdb655bbf5b8d21628 (patch)
tree915e6b37f43f69d3c87bd228b48c33069a23893d /tests/text.test
parent7a24f3c0a1f7ce93b165686a5c7586dce7c47e39 (diff)
downloadtk-f88e67c4c39b7758bad240fdb655bbf5b8d21628.zip
tk-f88e67c4c39b7758bad240fdb655bbf5b8d21628.tar.gz
tk-f88e67c4c39b7758bad240fdb655bbf5b8d21628.tar.bz2
* generic/tkText.c (DumpLine): stop dumping if we detect that the
text widget state has changed while dumping. [Bug 1414171] (InsertChars, DeleteChars): fix undo with space-based path. * tests/text.test (text-25.14): [Bug 1452419]
Diffstat (limited to 'tests/text.test')
-rw-r--r--tests/text.test14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/text.test b/tests/text.test
index 1c21d21..a5cdfbe 100644
--- a/tests/text.test
+++ b/tests/text.test
@@ -6,7 +6,7 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: text.test,v 1.19 2002/10/17 23:38:01 hobbs Exp $
+# RCS: @(#) $Id: text.test,v 1.19.2.1 2006/04/05 19:48:44 hobbs Exp $
package require tcltest 2.1
namespace import -force tcltest::configure
@@ -1573,6 +1573,18 @@ test text-25.13 {-maxundo configuration option} {
.t get 1.0 end
} "line 1\n\n"
+test text-25.14 {undo with space-based path} {
+ set t {.t e x t}
+ destroy $t
+ text $t -undo 1
+ $t insert end "line 1\n"
+ $t delete 1.4 1.6
+ $t insert end "line 2\n"
+ $t edit undo
+ $t edit undo
+ $t get 1.0 end
+} "line 1\n\n"
+
test text-26.1 {bug fix - 624372, ControlUtfProc long lines} {
destroy .t
pack [text .t -wrap none]