# HG changeset patch # User Mikael Berthe # Date 1148738345 -7200 # Node ID ea983a945eba80b1854bad51c679566fc28fff75 # Parent 5f43b532cc37feb0beb78f0c0f3bb33461ea01ee /buffer scroll_unlock: Don't always jump to the end of the buffer If there is no pending message, do not jump to the bottom of the buffer. For special buffers (e.g. for the status buffer) pending flag is currently disabled so we jump unconditionally. diff -r 5f43b532cc37 -r ea983a945eba mcabber/src/screen.c --- a/mcabber/src/screen.c Sat May 27 13:33:41 2006 +0200 +++ b/mcabber/src/screen.c Sat May 27 15:59:05 2006 +0200 @@ -1595,8 +1595,9 @@ win_entry->lock = TRUE; } else { win_entry->lock = FALSE; - win_entry->cleared = FALSE; - win_entry->top = NULL; + //win_entry->cleared = FALSE; + if (isspe || (buddy_getflags(BUDDATA(current_buddy)) & ROSTER_FLAG_MSG)) + win_entry->top = NULL; } // If chatmode is disabled and we're at the bottom of the buffer,