/buffer scroll_unlock: Don't always jump to the end of the buffer
authorMikael Berthe <mikael@lilotux.net>
Sat, 27 May 2006 15:59:05 +0200
changeset 880 ea983a945eba
parent 879 5f43b532cc37
child 881 618967a008a2
/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.
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,