From d638059c8c0bebaaf0feff5a53ad396cfb283d74 Mon Sep 17 00:00:00 2001 From: hobbs Date: Tue, 30 Nov 1999 07:27:01 +0000 Subject: * library/entry.tcl: fixed up tkEntrySeeInsert (Nemthi) --- library/entry.tcl | 9 ++------- 1 file 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 } } -- cgit v0.12