Mercurial > ~mikael > mcabber > hg
diff mcabber/src/hbuf.c @ 197:c289e3c39c48
[/trunk] Changeset 209 by mikael
* screen.c: display prefixes "*<*" or "*>*" when both info and in/out prefixes
are requested.
* hbuf.c: set HBB_PREFIX_INFO prefix when a line is too long to fit in an
hbuf block
* histolog.c: display a message when reading a big history file (because it
can hang the ui for a while)
author | mikael |
---|---|
date | Sat, 07 May 2005 07:33:10 +0000 |
parents | 4f3975f1b852 |
children | da50f08ea058 |
line wrap: on
line diff
--- a/mcabber/src/hbuf.c Sat May 07 06:34:47 2005 +0000 +++ b/mcabber/src/hbuf.c Sat May 07 07:33:10 2005 +0000 @@ -78,6 +78,7 @@ if (strlen(text) >= HBB_BLOCKSIZE) { // Too long 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