[Commits] [SCM] claws branch, master, updated. 3.15.0-13-g592315a

claws at claws-mail.org claws at claws-mail.org
Sun Apr 2 13:24:29 CEST 2017


The branch, master has been updated
       via  592315ae177248b7435a353a53883a0d78c7c4a3 (commit)
      from  6aecd1768d5e9898203d35b31e1137983b760888 (commit)

Summary of changes:
 src/compose.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 592315ae177248b7435a353a53883a0d78c7c4a3
Author: Paul <paul at claws-mail.org>
Date:   Sun Apr 2 12:24:20 2017 +0100

    fix bug 3801, 'Broken auto wrapping'

diff --git a/src/compose.c b/src/compose.c
index 4e93862..0f25a91 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -5648,7 +5648,7 @@ static gint compose_write_to_file(Compose *compose, FILE *fp, gint action, gbool
 	tmp = end;
 
 	/* We make sure that there is a newline at the end. */
-	if (gtk_text_iter_backward_char(&tmp)) {
+	if (action == COMPOSE_WRITE_FOR_SEND && gtk_text_iter_backward_char(&tmp)) {
 		chars = gtk_text_buffer_get_text(buffer, &tmp, &end, FALSE);
 		if (*chars != '\n') {
 			gtk_text_buffer_insert(buffer, &end, "\n", 1);

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list