From eb78d528032eb6aed4fea23a56198aa78a88adaf Mon Sep 17 00:00:00 2001 From: patthoyts Date: Wed, 12 Nov 2008 16:38:13 +0000 Subject: bug #1777362 - handle windows with funky names by avoiding use of the window path for anchors. --- ChangeLog | 5 ++++ library/text.tcl | 88 +++++++++++++++++++++++++++++++++----------------------- tests/text.test | 49 +++++++++++++++++++++++++++---- 3 files changed, 100 insertions(+), 42 deletions(-) diff --git a/ChangeLog b/ChangeLog index b271108..9fdbcac 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-11-12 Pat Thoyts + + * library/text.tcl: bug #1777362 - handle windows with funky names + * test/text.test: by avoiding use of the window path for anchors. + 2008-11-11 Jan Nijtmans * generic/tkImgPhoto.c Fix [Bug 2265860] new test failures diff --git a/library/text.tcl b/library/text.tcl index 36a15c2..0d9b9d2 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.41 2006/09/10 17:06:32 das Exp $ +# RCS: @(#) $Id: text.tcl,v 1.42 2008/11/12 16:38:13 patthoyts Exp $ # # Copyright (c) 1992-1994 The Regents of the University of California. # Copyright (c) 1994-1997 Sun Microsystems, Inc. @@ -33,6 +33,7 @@ # char, word, or line. # x, y - Last known mouse coordinates for scanning # and auto-scanning. +# #------------------------------------------------------------------------- #------------------------------------------------------------------------- @@ -224,10 +225,10 @@ bind Text { } bind Text { - %W mark set tk::anchor%W insert + %W mark set [tk::TextAnchor %W] insert } bind Text