2005-03-31 [colin] 1.9.6cvs17
[claws.git] / src / compose.c
index 4389c063d9107c1a5c7af9411430f8dad098f6a0..cd7fb88ecdfe7146945635caf37da0339678a4c8 100644 (file)
@@ -2714,7 +2714,7 @@ static gboolean compose_get_line_break_pos(GtkTextBuffer *buffer,
        return do_break;
 }
 
-static gboolean is_sig_separator(Compose *compose, GtkTextBuffer *textbuf, GtkTextIter *iter) 
+static gboolean compose_is_sig_separator(Compose *compose, GtkTextBuffer *textbuf, GtkTextIter *iter) 
 {
        char *text = NULL;
        GtkTextIter start = *iter;
@@ -2782,6 +2782,10 @@ static gboolean compose_join_next_line(Compose *compose,
        if (compose_is_itemized(buffer, &end))
                return FALSE;
 
+       /* don't join signature separator */
+       if (compose_is_sig_separator(compose, buffer, &iter_))
+               return FALSE;
+
        /* delete quote str */
        if (quote_len > 0)
                gtk_text_buffer_delete(buffer, &iter_, &end);