diff options
author | fvogelnew1@free.fr <fvogel> | 2012-05-28 20:30:42 (GMT) |
---|---|---|
committer | fvogelnew1@free.fr <fvogel> | 2012-05-28 20:30:42 (GMT) |
commit | 8bbeadcacb8f5a479ba9c4c7c4076bc4ed92194f (patch) | |
tree | b69b3024078fafa826fb81e475b8db5f6e536734 /generic/tkTextDisp.c | |
parent | e7ddefeb574f9589615d7993d82c422979df7792 (diff) | |
parent | de7e506bf622553538e961b6aba719e07a18caf7 (diff) | |
download | tk-8bbeadcacb8f5a479ba9c4c7c4076bc4ed92194f.zip tk-8bbeadcacb8f5a479ba9c4c7c4076bc4ed92194f.tar.gz tk-8bbeadcacb8f5a479ba9c4c7c4076bc4ed92194f.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 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); |