comparison 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
comparison
equal deleted inserted replaced
879:5f43b532cc37 880:ea983a945eba
1593 1593
1594 if (lock) { 1594 if (lock) {
1595 win_entry->lock = TRUE; 1595 win_entry->lock = TRUE;
1596 } else { 1596 } else {
1597 win_entry->lock = FALSE; 1597 win_entry->lock = FALSE;
1598 win_entry->cleared = FALSE; 1598 //win_entry->cleared = FALSE;
1599 win_entry->top = NULL; 1599 if (isspe || (buddy_getflags(BUDDATA(current_buddy)) & ROSTER_FLAG_MSG))
1600 win_entry->top = NULL;
1600 } 1601 }
1601 1602
1602 // If chatmode is disabled and we're at the bottom of the buffer, 1603 // If chatmode is disabled and we're at the bottom of the buffer,
1603 // we need to set the "top" line, so we need to call scr_ShowBuddyWindow() 1604 // we need to set the "top" line, so we need to call scr_ShowBuddyWindow()
1604 // at least once. (Maybe it will cause a double refresh...) 1605 // at least once. (Maybe it will cause a double refresh...)