Mercurial > hg
changeset 1967:f016c9c9d992
Update hbuf_jump_readmark()
Needed after recent changes
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Fri, 18 Mar 2011 19:35:25 +0100 |
parents | 88dafee4ee49 |
children | 83d7c7daea6a |
files | mcabber/mcabber/hbuf.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;