X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-recpt-editor.c;h=87aaf6d6dfbd25c202f0c8e799b23e511efe0851;hp=3f857c894f9ca70c41911ab23574fa28e3ad35f3;hb=a2b8a442976d26eb939ee9b8d83e3101f48dece3;hpb=c7795718ea6b783cdcf7a641e8ce2dccea4b52d6 diff --git a/src/widgets/modest-recpt-editor.c b/src/widgets/modest-recpt-editor.c index 3f857c8..87aaf6d 100644 --- a/src/widgets/modest-recpt-editor.c +++ b/src/widgets/modest-recpt-editor.c @@ -467,6 +467,10 @@ is_valid_insert (const gchar *text, gint len) if (!quoted && ((c == g_utf8_get_char(",") || c == g_utf8_get_char (";")))) { if ((next_c != 0) && (next_c != g_utf8_get_char ("\n"))) return FALSE; + else { + current = g_utf8_next_char (next_current); + continue; + } } if (c == 0x2022 || c == 0xfffc || c == g_utf8_get_char ("\n") || @@ -535,6 +539,7 @@ modest_recpt_editor_on_insert_text (GtkTextBuffer *buffer, g_signal_stop_emission_by_name (G_OBJECT (buffer), "insert-text"); gtk_text_buffer_insert (buffer, location, new_text, -1); g_free (new_text); + return; } if (iter_has_recipient (location)) {