diff options
Diffstat (limited to 'library')
-rw-r--r-- | library/text.tcl | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/library/text.tcl b/library/text.tcl index bc32264..623b2e1 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.22 2002/03/07 11:49:49 dkf Exp $ +# RCS: @(#) $Id: text.tcl,v 1.23 2002/06/21 23:09:55 hobbs Exp $ # # Copyright (c) 1992-1994 The Regents of the University of California. # Copyright (c) 1994-1997 Sun Microsystems, Inc. @@ -339,15 +339,11 @@ bind Text <Control-t> { } bind Text <<Undo>> { - if { ! [ catch { %W edit undo } ] } { - %W see insert - } + catch { %W edit undo } } bind Text <<Redo>> { - if { ! [ catch { %W edit redo } ] } { - %W see insert - } + catch { %W edit redo } } if {[string compare $tcl_platform(platform) "windows"]} { |