summaryrefslogtreecommitdiffstats
path: root/tests/text.test
diff options
context:
space:
mode:
authorericm <ericm@noemail.net>2000-01-21 17:25:43 (GMT)
committerericm <ericm@noemail.net>2000-01-21 17:25:43 (GMT)
commitdb71dbab7fa5ed1100cab6cba45b9a50328c2bbc (patch)
tree55079ad404083b03faafabf25989029cf5e94c9b /tests/text.test
parent4057dfe33877b9546ead6cf27916ef6fb4ff16cb (diff)
downloadtk-db71dbab7fa5ed1100cab6cba45b9a50328c2bbc.zip
tk-db71dbab7fa5ed1100cab6cba45b9a50328c2bbc.tar.gz
tk-db71dbab7fa5ed1100cab6cba45b9a50328c2bbc.tar.bz2
* tests/text.test:
* generic/tkText.c: Fixed bug relating to regexp searching for empty lines; previously, the starting line was ignored. (bug #1643). FossilOrigin-Name: 9d32c5f49a20988defccc8e888a9130e08b43f18
Diffstat (limited to 'tests/text.test')
-rw-r--r--tests/text.test9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/text.test b/tests/text.test
index 3ae14bb..d7b4210 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.8 2000/01/21 03:55:06 hobbs Exp $
+# RCS: @(#) $Id: text.test,v 1.9 2000/01/21 17:25:43 ericm Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
source [file join [pwd] [file dirname [info script]] defs.tcl]
@@ -961,6 +961,13 @@ test text-20.34 {TextSearchCmd procedure, firstChar and lastChar} {
test text-20.35 {TextSearchCmd procedure, firstChar and lastChar} {
.t search {} end
} {1.0}
+test text-20.36 {TextSearchCmd procedure, regexp finds empty lines} {
+ # Test for fix of bug #1643
+ .t insert end "\n"
+ tkTextSetCursor .t 4.0
+ .t search -forward -regexp {^$} insert end
+} {4.0}
+
catch {destroy .t2}
toplevel .t2
wm geometry .t2 +0+0