diff options
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkTextDisp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c index b3d94ec..b66bf71 100644 --- a/generic/tkTextDisp.c +++ b/generic/tkTextDisp.c @@ -2006,8 +2006,9 @@ UpdateDisplayInfo( * widget. */ - lineNum = -1; - bytesToCount = 0; /* Stop compiler warning. */ + lineNum = TkBTreeNumLines(textPtr->sharedTextPtr->tree, + textPtr) - 1; + bytesToCount = INT_MAX; } else { lineNum = TkBTreeLinesTo(textPtr, dInfoPtr->dLinePtr->index.linePtr); |