# HG changeset patch # User Mikael Berthe # Date 1300473325 -3600 # Node ID f016c9c9d992aec59f65058987e4c0c836d471ea # Parent 88dafee4ee497d9552e0177e4c39fbd1fa3e49f7 Update hbuf_jump_readmark() Needed after recent changes diff -r 88dafee4ee49 -r f016c9c9d992 mcabber/mcabber/hbuf.c --- a/mcabber/mcabber/hbuf.c Fri Mar 18 19:08:16 2011 +0100 +++ b/mcabber/mcabber/hbuf.c Fri Mar 18 19:35:25 2011 +0100 @@ -439,12 +439,16 @@ GList *hbuf_jump_readmark(GList *hbuf) { hbuf_block *blk; + GList *r = NULL; hbuf = g_list_last(hbuf); for ( ; hbuf; hbuf = g_list_previous(hbuf)) { blk = (hbuf_block*)(hbuf->data); if (blk->prefix.flags & HBB_PREFIX_READMARK) - return g_list_next(hbuf); + return r; + if ((blk->flags & HBB_FLAG_PERSISTENT) && + (blk->prefix.flags & ~HBB_PREFIX_READMARK)) + r = hbuf; } return NULL;