talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 592315ae177248b7435a353a53883a0d78c7c4a3
parent 6aecd1768d5e9898203d35b31e1137983b760888
Author: Paul <paul@claws-mail.org>
Date:   Sun,  2 Apr 2017 12:24:20 +0100

fix bug 3801, 'Broken auto wrapping'

Diffstat:
Msrc/compose.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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);