diff options
author | vincentdarley <vincentdarley> | 2005-05-13 13:48:21 (GMT) |
---|---|---|
committer | vincentdarley <vincentdarley> | 2005-05-13 13:48:21 (GMT) |
commit | 9309ab3779c2b72ae26817c003adadbb4140a79b (patch) | |
tree | a4d042cc7fa55d0676ab2517ac6ec9d70743a8c0 /library/text.tcl | |
parent | 20cf3a3fd3178be3a4acde2bbde044c90df9f475 (diff) | |
download | tk-9309ab3779c2b72ae26817c003adadbb4140a79b.zip tk-9309ab3779c2b72ae26817c003adadbb4140a79b.tar.gz tk-9309ab3779c2b72ae26817c003adadbb4140a79b.tar.bz2 |
backport of text widget bug fix
Diffstat (limited to 'library/text.tcl')
-rw-r--r-- | library/text.tcl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/text.tcl b/library/text.tcl index cf40c38..3b2a5ab 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.24.2.5 2004/12/06 19:42:11 hobbs Exp $ +# RCS: @(#) $Id: text.tcl,v 1.24.2.6 2005/05/13 13:48:21 vincentdarley Exp $ # # Copyright (c) 1992-1994 The Regents of the University of California. # Copyright (c) 1994-1997 Sun Microsystems, Inc. @@ -888,7 +888,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 } } |