summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>2002-03-04 07:36:39 (GMT)
committerhobbs <hobbs@noemail.net>2002-03-04 07:36:39 (GMT)
commit024ff71baf1e38fae81908467ec9d52964d05180 (patch)
treed83a4680bba568551aadd4b1fa9dba0a1a75f277
parent0f90e64c0adc3d56900c2e92d4bd3979e8a5ef95 (diff)
downloadtk-024ff71baf1e38fae81908467ec9d52964d05180.zip
tk-024ff71baf1e38fae81908467ec9d52964d05180.tar.gz
tk-024ff71baf1e38fae81908467ec9d52964d05180.tar.bz2
added catch around Triple-1 binding use of sel.last
FossilOrigin-Name: 0c300c86a773d335b81751707a30db22e745b7de
-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