summaryrefslogtreecommitdiffstats
path: root/generic/tkTextDisp.c
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)
commitd3bc8ffa53d28b23e66f632568191db052fdfef0 (patch)
tree2e9e0a96ca1ffe240fe91f57ce60d2aef1a1c38c /generic/tkTextDisp.c
parentfea2ef2b4e93cc7d56bfbe9d6765392555c4a09f (diff)
downloadtk-d3bc8ffa53d28b23e66f632568191db052fdfef0.zip
tk-d3bc8ffa53d28b23e66f632568191db052fdfef0.tar.gz
tk-d3bc8ffa53d28b23e66f632568191db052fdfef0.tar.bz2
Better fix than [9f0edc127f], now takes merged lines into account.
Diffstat (limited to 'generic/tkTextDisp.c')
-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;
}