diff options
author | vincentdarley <vincentdarley@noemail.net> | 2005-07-18 22:11:58 (GMT) |
---|---|---|
committer | vincentdarley <vincentdarley@noemail.net> | 2005-07-18 22:11:58 (GMT) |
commit | f4e69d832bcb9ce0f7d9eee0f6f8154e4e8ddce0 (patch) | |
tree | bbe4da957a89759d8e5e54a83251d82987a132c8 /tests/textIndex.test | |
parent | 0ebf01a6612c8fb5c940418ca2f1707ba24b76b1 (diff) | |
download | tk-f4e69d832bcb9ce0f7d9eee0f6f8154e4e8ddce0.zip tk-f4e69d832bcb9ce0f7d9eee0f6f8154e4e8ddce0.tar.gz tk-f4e69d832bcb9ce0f7d9eee0f6f8154e4e8ddce0.tar.bz2 |
fix to text widget 'mark prev' segfault
FossilOrigin-Name: ea97e43756587c376f2b962c91999f9344da4a9b
Diffstat (limited to 'tests/textIndex.test')
-rw-r--r-- | tests/textIndex.test | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/textIndex.test b/tests/textIndex.test index 0f8f4c0..1546973 100644 --- a/tests/textIndex.test +++ b/tests/textIndex.test @@ -6,7 +6,7 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. # -# RCS: @(#) $Id: textIndex.test,v 1.17 2005/05/13 13:47:18 vincentdarley Exp $ +# RCS: @(#) $Id: textIndex.test,v 1.18 2005/07/18 22:12:05 vincentdarley Exp $ package require tcltest 2.1 eval tcltest::configure $argv @@ -897,6 +897,16 @@ test textIndex-23.1 {text paragraph start} { set res } {2.0 1.1 1.1} +test textIndex-24.1 {text mark prev} { + pack [text .t2] + .t2 insert end [string repeat "1 2 3 4 5 6 7 8 9 0\n" 12] + .t2 mark set 1.0 10.0 + update + # then this crash Tk: + set res [.t2 mark previous 10.10] + destroy .t2 + set res +} {1.0} # cleanup rename textimage {} |