diff options
author | hobbs <hobbs@noemail.net> | 2002-06-21 23:09:53 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2002-06-21 23:09:53 (GMT) |
commit | 3dd1d6d625af72aa49a917d29a182fdf21f92a57 (patch) | |
tree | 454006e4ff105b7ca979593a68e8dc7ea1cd12f4 /library/text.tcl | |
parent | b845298d99dc20f80198da102f99045c46655e5c (diff) | |
download | tk-3dd1d6d625af72aa49a917d29a182fdf21f92a57.zip tk-3dd1d6d625af72aa49a917d29a182fdf21f92a57.tar.gz tk-3dd1d6d625af72aa49a917d29a182fdf21f92a57.tar.bz2 |
* doc/text.n: TIP #104 implementation which generalizes the
* generic/tkText.c: undo/redo stack to not be tied solely to the
* generic/tkText.h: text widget. The APIs are still private.
* generic/tkUndo.c: This also adds a stack limiting ability and
* generic/tkUndo.h: a -maxundo option to the text widget (in
* library/text.tcl: addition to the options from TIP #26) should
* mac/tkMacDefault.h: users want to limit the undo/redo stack
* tests/text.test: (should not be necessary in most cases).
* unix/Makefile.in: [Patch #554763] (callewart)
* unix/tkUnixDefault.h:
* win/Makefile.in:
* win/makefile.vc:
* win/tkWinDefault.h:
FossilOrigin-Name: 6a28d5bdfd4bd0d8ab71bc4b8aeb118626124b0a
Diffstat (limited to 'library/text.tcl')
-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"]} { |