diff options
author | fvogel <fvogelnew1@free.fr> | 2012-05-28 20:29:08 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2012-05-28 20:29:08 (GMT) |
commit | c790c69f4461ba43323c402bacf8224c70041b09 (patch) | |
tree | 00bcc211ec068bf94da101f63308b49a4af558bd /generic/tkTextDisp.c | |
parent | 20ae5845bf5393c40ddd12145483e4c6af9ef77e (diff) | |
parent | 80e6d08fdcb016f24f236760cef472a7465a12d5 (diff) | |
download | tk-c790c69f4461ba43323c402bacf8224c70041b09.zip tk-c790c69f4461ba43323c402bacf8224c70041b09.tar.gz tk-c790c69f4461ba43323c402bacf8224c70041b09.tar.bz2 |
Bug 1630254: missing scrolling of text widget when from a -startline == -endline initial state it is configured to display a non-empty part of it
Diffstat (limited to 'generic/tkTextDisp.c')
-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 d0cd4d2..7891a2c 100644 --- a/generic/tkTextDisp.c +++ b/generic/tkTextDisp.c @@ -2005,8 +2005,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); |