From: Paul Date: Mon, 22 May 2017 16:56:06 +0000 (+0100) Subject: add more utf8 listitem characters X-Git-Tag: 3.16.0~142 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=6cc9389b81be221bec9fb2b8dd4876648986f215 add more utf8 listitem characters patch by H. Merijn Brand --- diff --git a/src/compose.c b/src/compose.c index 224e5c155..1a6557dc4 100644 --- a/src/compose.c +++ b/src/compose.c @@ -4082,10 +4082,22 @@ static int compose_itemized_length(GtkTextBuffer *buffer, } clen = g_unichar_to_utf8(wc, ch); - if (clen != 1) - return 0; - - if (!strchr("*-+", ch[0])) + if (!((clen == 1 && strchr("*-+", ch[0])) || + (clen == 3 && ( + wc == 0x2022 || /* BULLET */ + wc == 0x2023 || /* TRIANGULAR BULLET */ + wc == 0x2043 || /* HYPHEN BULLET */ + wc == 0x204c || /* BLACK LEFTWARDS BULLET */ + wc == 0x204d || /* BLACK RIGHTWARDS BULLET */ + wc == 0x2219 || /* BULLET OPERATOR */ + wc == 0x25d8 || /* INVERSE BULLET */ + wc == 0x25e6 || /* WHITE BULLET */ + wc == 0x2619 || /* REVERSED ROTATED FLORAL HEART BULLET */ + wc == 0x2765 || /* ROTATED HEAVY BLACK HEART BULLET */ + wc == 0x2767 || /* ROTATED FLORAL HEART BULLET */ + wc == 0x29be || /* CIRCLED WHITE BULLET */ + wc == 0x29bf /* CIRCLED BULLET */ + )))) return 0; gtk_text_iter_forward_char(&iter);