+2003-07-29 [paul] 0.9.3claws71
+
+ * src/compose.c
+ fix bug where changing to an account without an auto-sig
+ from an initial account without an auto-sig would insert
+ 2 blank lines at the cursor point
+ fix bug where changing to an account with an auto-sig
+ from an initial account without an auto-sig would insert
+ the sig at the cursor point
+
2003-07-29 [paul] 0.9.3claws70
* src/folderview.c
{
GtkSText *text = GTK_STEXT(compose->text);
gint cur_pos;
+ gint len;
g_return_if_fail(compose->account != NULL);
gtk_stext_freeze(text);
+ len = gtk_stext_get_length(text);
+ gtk_stext_set_point(text, len);
+
if (replace && compose->sig_str) {
gint pos;
- gint len;
if (compose->sig_str[0] == '\0')
pos = -1;
if (len >= 0) {
gtk_stext_set_point(text, pos);
gtk_stext_forward_delete(text, len);
- } else {
- len = gtk_stext_get_length(text);
- gtk_stext_set_point(text, len);
}
- } else {
- len = gtk_stext_get_length(text);
- gtk_stext_set_point(text, len);
}
- } else
- gtk_stext_insert(text, NULL, NULL, NULL, "\n\n", 2);
+ }
g_free(compose->sig_str);
compose->sig_str = compose_get_signature_str(compose);
}
if (compose->account->sig_sep) {
- sig_str = g_strconcat(compose->account->sig_sep, "\n", sig_body,
+ sig_str = g_strconcat("\n\n", compose->account->sig_sep, "\n", sig_body,
NULL);
g_free(sig_body);
} else