summaryrefslogtreecommitdiffstats
path: root/generic/tkTextBTree.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2006-09-06 22:01:24 (GMT)
committerhobbs <hobbs>2006-09-06 22:01:24 (GMT)
commitc1e05e3afb76356ef8e2d5af2a2ce3660c6bee48 (patch)
tree983074bdc91b005de21970a3ec98bae0c6d5af63 /generic/tkTextBTree.c
parent87caa3a60c4200a5a79707791643a555407a1271 (diff)
downloadtk-c1e05e3afb76356ef8e2d5af2a2ce3660c6bee48.zip
tk-c1e05e3afb76356ef8e2d5af2a2ce3660c6bee48.tar.gz
tk-c1e05e3afb76356ef8e2d5af2a2ce3660c6bee48.tar.bz2
* generic/tkEntry.c: move hard-coded ALWAYS_SHOW_SELECTION
* generic/tkInt.h: control of entry/text selection display * generic/tkText.c: based on focus to the Tcl level, * generic/tkTextBTree.c: controlled by ::tk::AlwaysShowSelection * generic/tkTextDisp.c: (boolean, private). [Bug 1553691] * generic/tkWindow.c: * library/tk.tcl * unix/tkUnixPort.h:
Diffstat (limited to 'generic/tkTextBTree.c')
-rw-r--r--generic/tkTextBTree.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/generic/tkTextBTree.c b/generic/tkTextBTree.c
index 5c5fb86..5c4069e 100644
--- a/generic/tkTextBTree.c
+++ b/generic/tkTextBTree.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkTextBTree.c,v 1.6.2.1 2005/11/27 02:44:25 das Exp $
+ * RCS: @(#) $Id: tkTextBTree.c,v 1.6.2.2 2006/09/06 22:01:25 hobbs Exp $
*/
#include "tkInt.h"
@@ -2550,13 +2550,12 @@ TkTextIsElided(textPtr, indexPtr)
for (i = numTags-1; i >=0; i--) {
if (tagCnts[i] & 1) {
-#ifndef ALWAYS_SHOW_SELECTION
/* who would make the selection elided? */
- if ((tagPtr == textPtr->selTagPtr)
+ if (!TkpAlwaysShowSelection(textPtr->tkwin)
+ && (tagPtr == textPtr->selTagPtr)
&& !(textPtr->flags & GOT_FOCUS)) {
continue;
}
-#endif
elide = tagPtrs[i]->elide;
break;
}