summaryrefslogtreecommitdiffstats
path: root/library/text.tcl
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2005-05-13 13:46:11 (GMT)
committervincentdarley <vincentdarley>2005-05-13 13:46:11 (GMT)
commit116e3bab0ea5b1cddb1f0e9021cd4a92a2c34d4f (patch)
treee00f296081d0e86a99bafe7962701b541c5dfd7f /library/text.tcl
parentc783a56e6482e931a8bda8753ab911b841d515ac (diff)
downloadtk-116e3bab0ea5b1cddb1f0e9021cd4a92a2c34d4f.zip
tk-116e3bab0ea5b1cddb1f0e9021cd4a92a2c34d4f.tar.gz
tk-116e3bab0ea5b1cddb1f0e9021cd4a92a2c34d4f.tar.bz2
fix to two text widget bugs
Diffstat (limited to 'library/text.tcl')
-rw-r--r--library/text.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/text.tcl b/library/text.tcl
index 40973e7..a6c1c1f 100644
--- a/library/text.tcl
+++ b/library/text.tcl
@@ -3,7 +3,7 @@
# This file defines the default bindings for Tk text widgets and provides
# procedures that help in implementing the bindings.
#
-# RCS: @(#) $Id: text.tcl,v 1.36 2005/04/18 11:34:41 vincentdarley Exp $
+# RCS: @(#) $Id: text.tcl,v 1.37 2005/05/13 13:46:12 vincentdarley Exp $
#
# Copyright (c) 1992-1994 The Regents of the University of California.
# Copyright (c) 1994-1997 Sun Microsystems, Inc.
@@ -909,7 +909,7 @@ proc ::tk::TextPrevPara {w pos} {
dummy index]} {
set pos [$w index "$pos + [lindex $index 0] chars"]
}
- if {[$w compare $pos != insert] || [string equal $pos 1.0]} {
+ if {[$w compare $pos != insert] || [lindex [split $pos .] 0] == 1} {
return $pos
}
}