From 39205d2bf1e853b4745274f77115a60293dec183 Mon Sep 17 00:00:00 2001 From: culler Date: Mon, 30 Oct 2017 18:25:59 +0000 Subject: Reworked the regression test so that it would more precisely target the changed behavior of DisplayText. --- generic/tkTextDisp.c | 7 ++++++- generic/tkTextWind.c | 9 --------- tests/textDisp.test | 2 +- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c index 24184e3..238ae1a 100644 --- a/generic/tkTextDisp.c +++ b/generic/tkTextDisp.c @@ -4148,7 +4148,6 @@ DisplayText( numRedisplays++; if (tkTextDebug) { Tcl_SetVar2(interp, "tk_textRedraw", NULL, "", TCL_GLOBAL_ONLY); - Tcl_SetVar2(interp, "tk_textEmbWinDisplay", NULL, "", TCL_GLOBAL_ONLY); } /* @@ -4509,6 +4508,12 @@ DisplayText( x = -chunkPtr->width; } + if (tkTextDebug) { + char string[TK_POS_CHARS]; + + TkTextPrintIndex(textPtr, &dlPtr->index, string); + LOG("tk_textEmbWinDisplay", string); + } TkTextEmbWinDisplayProc(textPtr, chunkPtr, x, dlPtr->spaceAbove, dlPtr->height-dlPtr->spaceAbove-dlPtr->spaceBelow, diff --git a/generic/tkTextWind.c b/generic/tkTextWind.c index dcee36e..c9fc20f 100644 --- a/generic/tkTextWind.c +++ b/generic/tkTextWind.c @@ -1112,15 +1112,6 @@ TkTextEmbWinDisplayProc( return; } - if (tkTextDebug) { - /* - * The variable tk_textEmbWinDisplay is cleared in DisplayText. - */ - - Tcl_SetVar2(textPtr->interp, "tk_textEmbWinDisplay", NULL, - Tk_PathName(tkwin), - TCL_GLOBAL_ONLY|TCL_APPEND_VALUE|TCL_LIST_ELEMENT); - } if ((x + chunkPtr->width) <= 0) { /* * The window is off-screen; just unmap it. diff --git a/tests/textDisp.test b/tests/textDisp.test index 5fdf8e1..115b8cf 100644 --- a/tests/textDisp.test +++ b/tests/textDisp.test @@ -968,7 +968,7 @@ test textDisp-6.10 {DisplayText, redisplay embedded windows after scroll.} {aqua .t delete 2.0 3.0 update list $tk_textEmbWinDisplay -} {{.t.button_one .t.button_two .t.button_three}} +} {{4.0 6.0}} # The following group of tests is marked non-portable because -- cgit v0.12