diff mcabber/src/screen.c @ 880:ea983a945eba

/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.
author Mikael Berthe <mikael@lilotux.net>
date Sat, 27 May 2006 15:59:05 +0200
parents c7ba6f41d056
children 9e6d9f0cf9eb
line wrap: on
line diff
--- 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,