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 | a6c5ba387fffc8e0fae6a0f81c63c132ebce7fc6 (patch) | |
tree | 00bcc211ec068bf94da101f63308b49a4af558bd | |
parent | 9ea605f06bdde8beed71761774f09a632d2fb100 (diff) | |
parent | 0f5d02cbea1bb782e045f52f3ee22449fb1e0ee7 (diff) | |
download | tk-a6c5ba387fffc8e0fae6a0f81c63c132ebce7fc6.zip tk-a6c5ba387fffc8e0fae6a0f81c63c132ebce7fc6.tar.gz tk-a6c5ba387fffc8e0fae6a0f81c63c132ebce7fc6.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
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | generic/tkTextDisp.c | 5 |
2 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,9 @@ +2012-05-28 Francois Vogel <fvogelnew1@free.fr> + + * generic/tkTextDisp.c: [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 + 2012-05-24 Jan Nijtmans <nijtmans@users.sf.net> * win/stubs.c: Change XSetCommand signature to match Xorg, 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); |