diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-12-22 08:41:20 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-12-22 08:41:20 +0000 |
commit | 20a5bdb90b65ed80bc29004bcb3ac9f2b5e2c019 (patch) | |
tree | 90127c725640e0ff6e0cc82c538cf3ba3d31b350 /src | |
parent | 86a09d60aaca8e86d8c8bff8969d0bba519c86ff (diff) |
fixed enumerated lines detection.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@855 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r-- | src/compose.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compose.c b/src/compose.c index 2e77a6df..7bacb9c0 100644 --- a/src/compose.c +++ b/src/compose.c @@ -2137,14 +2137,20 @@ static gboolean compose_is_itemized(GtkTextBuffer *buffer, if (g_unichar_isdigit(wc)) { digit_appeared = TRUE; gtk_text_iter_forward_char(&iter); + if (gtk_text_iter_ends_line(&iter)) + return FALSE; } else if (clen == 1 && (ch[0] == ')' || ch[0] == '.')) { if (!digit_appeared) return FALSE; gtk_text_iter_forward_char(&iter); + if (gtk_text_iter_ends_line(&iter)) + return TRUE; wc = gtk_text_iter_get_char(&iter); if (g_unichar_isspace(wc)) return TRUE; + else + return FALSE; } else return FALSE; } |