# HG changeset patch # User Mikael Berthe # Date 1147211321 -7200 # Node ID a3b8956db7bc7e6570d00d0f608d874b8692b1c5 # Parent da03534e46c704bb3f3d50bca02a938e18e5a030 hbuf: minor fixes and typos diff -r da03534e46c7 -r a3b8956db7bc mcabber/src/hbuf.c --- a/mcabber/src/hbuf.c Mon May 08 23:47:26 2006 +0200 +++ b/mcabber/src/hbuf.c Tue May 09 23:48:41 2006 +0200 @@ -252,6 +252,7 @@ hbuf_block *blk; guchar last_persist_prefixflags = 0; GList *last_persist; // last persistent flags + hbb_line **array, **array_elt; // To be able to correctly highlight multi-line messages, // we need to look at the last non-null prefix, which should be the first @@ -266,10 +267,10 @@ last_persist = g_list_previous(last_persist); } - hbb_line **array = g_new0(hbb_line*, n); - hbb_line **array_elt = array; + array = g_new0(hbb_line*, n); + array_elt = array; - for (i=0 ; i < n ; i++) { + for (i = 0 ; i < n ; i++) { if (hbuf) { int maxlen; blk = (hbuf_block*)(hbuf->data); @@ -282,7 +283,7 @@ if ((blk->flags & HBB_FLAG_PERSISTENT) && blk->prefix.flags) { last_persist_prefixflags = blk->prefix.flags; } else { - // Propagate hilighting flag + // Propagate highlighting flag (*array_elt)->flags |= last_persist_prefixflags & HBB_PREFIX_HLIGHT; }