diff options
author | fvogel <fvogelnew1@free.fr> | 2015-02-11 20:45:27 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2015-02-11 20:45:27 (GMT) |
commit | e4af27f10a8ee9c81fda67ed262d82f92da82eaa (patch) | |
tree | 57bf5e7e7250b84bc16d7fa0fa19dfecde1daa96 | |
parent | 2b2db4aad8a5eb2f31b8184ec6d1f42d75da173d (diff) | |
parent | dd4f3c4d292fc15fac4e760aa89b49f05b7d1c4c (diff) | |
download | tk-e4af27f10a8ee9c81fda67ed262d82f92da82eaa.zip tk-e4af27f10a8ee9c81fda67ed262d82f92da82eaa.tar.gz tk-e4af27f10a8ee9c81fda67ed262d82f92da82eaa.tar.bz2 |
Merged core-8-5-branch
-rw-r--r-- | generic/tkTextBTree.c | 14 | ||||
-rw-r--r-- | tests/textBTree.test | 16 |
2 files changed, 15 insertions, 15 deletions
diff --git a/generic/tkTextBTree.c b/generic/tkTextBTree.c index eaab652..7383d21 100644 --- a/generic/tkTextBTree.c +++ b/generic/tkTextBTree.c @@ -3615,20 +3615,6 @@ TkTextIsElided( infoPtr->elidePriority = -1; for (i = infoPtr->numTags-1; i >=0; i--) { if (infoPtr->tagCnts[i] & 1) { - /* - * Who would make the selection elided? - */ - - if ((tagPtr == textPtr->selTagPtr) - && !(textPtr->flags & GOT_FOCUS) - && (textPtr->inactiveSelBorder == NULL -#ifdef MAC_OSX_TK - /* Don't show inactive selection in disabled widgets. */ - || textPtr->state == TK_TEXT_STATE_DISABLED -#endif - )) { - continue; - } infoPtr->elide = infoPtr->tagPtrs[i]->elide; /* diff --git a/tests/textBTree.test b/tests/textBTree.test index 41b3d98..ebd6c50 100644 --- a/tests/textBTree.test +++ b/tests/textBTree.test @@ -872,7 +872,21 @@ test btree-14.1 {check tag presence} -setup { } -cleanup { destroy .t } -result {x y z} - +test btree-14.2 {TkTextIsElided} -setup { + destroy .t + text .t +} -body { + .t delete 1.0 end + .t tag config hidden -elide 1 + .t insert end "Line1\nLine2\nLine3\n" + .t tag add hidden 2.0 3.0 + .t tag add sel 1.2 3.2 + # next line used to panic because of "Bad tag priority being toggled on" + # (see bug [382da038c9]) + .t index "2.0 - 1 display line linestart" +} -cleanup { + destroy .t +} -result {1.0} test btree-15.1 {rebalance with empty node} -setup { destroy .t |