talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 6cc9389b81be221bec9fb2b8dd4876648986f215
parent 6c3b59e6ecc2ac6ffa6d4bf201f630b58641b2cf
Author: Paul <paul@claws-mail.org>
Date:   Mon, 22 May 2017 17:56:06 +0100

add more utf8 listitem characters

patch by H. Merijn Brand

Diffstat:
Msrc/compose.c | 20++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)

diff --git 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);