Mercurial > ~mikael > mcabber > hg
diff mcabber/src/hbuf.c @ 1268:dbc907b2d92f
Add configurable colors for info and incoming messages (Michal 'vorner' Vaner)
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Mon, 20 Aug 2007 19:41:31 +0200 |
parents | 3a4018f18bdf |
children | e42f48103609 |
line wrap: on
line diff
--- a/mcabber/src/hbuf.c Mon Aug 20 19:08:31 2007 +0200 +++ b/mcabber/src/hbuf.c Mon Aug 20 19:41:31 2007 +0200 @@ -149,6 +149,7 @@ text = "[ERR:LINE_TOO_LONG]"; hbuf_block_elt->prefix.flags |= HBB_PREFIX_INFO; } + if (hbuf_block_elt->ptr + strlen(text) >= hbuf_block_elt->ptr_end_alloc) { // Too long for the current allocated bloc, we need another one if (!maxhbufblocks) { @@ -327,7 +328,10 @@ } else { // Propagate highlighting flags (*array_elt)->flags |= last_persist_prefixflags & - (HBB_PREFIX_HLIGHT_OUT | HBB_PREFIX_HLIGHT); + (HBB_PREFIX_HLIGHT_OUT | HBB_PREFIX_HLIGHT | + HBB_PREFIX_INFO | HBB_PREFIX_IN); + //Continuation of a message - omit the prefix + (*array_elt)->flags |= HBB_PREFIX_CONT; } hbuf = g_list_next(hbuf);