summaryrefslogtreecommitdiffstats
path: root/library/entry.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'library/entry.tcl')
-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
}
}