summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}