summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2014-12-30 17:13:00 (GMT)
committerfvogel <fvogelnew1@free.fr>2014-12-30 17:13:00 (GMT)
commit1ab50143a150f7311fd78f0b0daa62eab222881d (patch)
tree2e9e0a96ca1ffe240fe91f57ce60d2aef1a1c38c
parent9e2551048f75c130f91342d41ee8342e90739373 (diff)
downloadtk-1ab50143a150f7311fd78f0b0daa62eab222881d.zip
tk-1ab50143a150f7311fd78f0b0daa62eab222881d.tar.gz
tk-1ab50143a150f7311fd78f0b0daa62eab222881d.tar.bz2
Better fix than [9f0edc127f], now takes merged lines into account.
-rw-r--r--generic/tkTextDisp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index ec14e10..c310100 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -5151,9 +5151,7 @@ TkTextSetYView(
*/
textPtr->topIndex = *indexPtr;
- if (indexPtr->byteIndex != 0) {
- TkTextFindDisplayLineEnd(textPtr, &textPtr->topIndex, 0, NULL);
- }
+ TkTextFindDisplayLineEnd(textPtr, &textPtr->topIndex, 0, NULL);
dInfoPtr->newTopPixelOffset = pickPlace;
goto scheduleUpdate;
}