diff options
author | hobbs <hobbs> | 2006-04-05 19:48:43 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2006-04-05 19:48:43 (GMT) |
commit | b7cd26f9bfcecfda81f52a40c7d27526991c925d (patch) | |
tree | 915e6b37f43f69d3c87bd228b48c33069a23893d /tests | |
parent | b27f9577e9b8027fa279fb4b7a4ddd39e507e34d (diff) | |
download | tk-b7cd26f9bfcecfda81f52a40c7d27526991c925d.zip tk-b7cd26f9bfcecfda81f52a40c7d27526991c925d.tar.gz tk-b7cd26f9bfcecfda81f52a40c7d27526991c925d.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')
-rw-r--r-- | tests/text.test | 14 |
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] |