summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhobbs <hobbs>2002-03-04 07:36:39 (GMT)
committerhobbs <hobbs>2002-03-04 07:36:39 (GMT)
commit75b12cf5b5e1f30c410bafa4a2d8647346318980 (patch)
treed83a4680bba568551aadd4b1fa9dba0a1a75f277
parente1489c29e94498a457284dc9fd85de49dd9cec0d (diff)
downloadtk-75b12cf5b5e1f30c410bafa4a2d8647346318980.zip
tk-75b12cf5b5e1f30c410bafa4a2d8647346318980.tar.gz
tk-75b12cf5b5e1f30c410bafa4a2d8647346318980.tar.bz2
added catch around Triple-1 binding use of sel.last
-rw-r--r--ChangeLog4
-rw-r--r--library/entry.tcl4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index ec21104..67e6512 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2002-03-03 Jeff Hobbs <jeffh@ActiveState.com>
+
+ * library/entry.tcl: added catch around Triple-1 binding use of sel.last
+
2002-02-28 Don Porter <dgp@users.sourceforge.net>
* library/console.tcl (ConsoleBind): Corrected console <<Paste>>
diff --git a/library/entry.tcl b/library/entry.tcl
index b869788..6542903 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.18 2002/02/15 05:48:08 mdejong Exp $
+# RCS: @(#) $Id: entry.tcl,v 1.19 2002/03/04 07:36:39 hobbs Exp $
#
# Copyright (c) 1992-1994 The Regents of the University of California.
# Copyright (c) 1994-1997 Sun Microsystems, Inc.
@@ -87,7 +87,7 @@ bind Entry <Double-1> {
bind Entry <Triple-1> {
set tk::Priv(selectMode) line
tk::EntryMouseSelect %W %x
- %W icursor sel.last
+ catch {%W icursor sel.last}
}
bind Entry <Shift-1> {
set tk::Priv(selectMode) char