summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorhobbs <hobbs>1999-11-30 07:27:01 (GMT)
committerhobbs <hobbs>1999-11-30 07:27:01 (GMT)
commitd638059c8c0bebaaf0feff5a53ad396cfb283d74 (patch)
treea0a342e7ee6a21fd21b256296235956c07060ef4 /library
parentb9fc7c41d9d1016c57609035afd4c1e8a7024551 (diff)
downloadtk-d638059c8c0bebaaf0feff5a53ad396cfb283d74.zip
tk-d638059c8c0bebaaf0feff5a53ad396cfb283d74.tar.gz
tk-d638059c8c0bebaaf0feff5a53ad396cfb283d74.tar.bz2
* library/entry.tcl: fixed up tkEntrySeeInsert (Nemthi)
Diffstat (limited to 'library')
-rw-r--r--library/entry.tcl9
1 files changed, 2 insertions, 7 deletions
diff --git a/library/entry.tcl b/library/entry.tcl
index 75f448c..379ef2d 100644
--- a/library/entry.tcl
+++ b/library/entry.tcl
@@ -3,7 +3,7 @@
# This file defines the default bindings for Tk entry widgets and provides
# procedures that help in implementing those bindings.
#
-# RCS: @(#) $Id: entry.tcl,v 1.9 1999/10/30 09:15:54 hobbs Exp $
+# RCS: @(#) $Id: entry.tcl,v 1.10 1999/11/30 07:27:01 hobbs Exp $
#
# Copyright (c) 1992-1994 The Regents of the University of California.
# Copyright (c) 1994-1997 Sun Microsystems, Inc.
@@ -509,13 +509,8 @@ proc tkEntryBackspace w {
proc tkEntrySeeInsert w {
set c [$w index insert]
- set left [$w index @0]
- if {$left > $c} {
+ if {($c < [$w index @0]) || ($c > [$w index @[winfo width $w]])} {
$w xview $c
- return
- }
- if {$c > [$w index @[winfo width $w]]} {
- $w xview insert
}
}