Mercurial > hg
changeset 109:96d239239c7a
[/trunk] Changeset 123 by mikael
* Fix scrolling after /clear.
author | mikael |
---|---|
date | Sat, 23 Apr 2005 18:10:27 +0000 |
parents | 7fb72bc13732 |
children | 3d41aca3d878 |
files | mcabber/src/screen.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/src/screen.c Fri Apr 22 22:06:53 2005 +0000 +++ b/mcabber/src/screen.c Sat Apr 23 18:10:27 2005 +0000 @@ -631,7 +631,10 @@ hbuf_top = win_entry->top; if (!hbuf_top) { hbuf_top = g_list_last(win_entry->hbuf); - nblines *= 3; + if (!win_entry->cleared) + nblines *= 3; + else + win_entry->cleared = FALSE; } n = 0; @@ -703,6 +706,7 @@ return; win_entry->cleared = TRUE; + win_entry->top = NULL; // Refresh the window scr_UpdateWindow(win_entry);