From e759a5eb8cbf3ce92b4ee4139a5e5c9bd0fc9447 Mon Sep 17 00:00:00 2001 From: Steffen Nurpmeso Date: Tue, 13 Mar 2018 20:39:12 +0100 Subject: [PATCH] collect(): *asksend*: fix: reallow "recompose" branch.. While here, use n_go_input() directly, we have a line buffer around and can thus use that! --- collect.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/collect.c b/collect.c index 22e95be2..0b70f428 100644 --- a/collect.c +++ b/collect.c @@ -2640,15 +2640,15 @@ jout: SEND_TODISP, CONV_NONE, NULL, NULL); jreasksend: - while((cp = n_go_input_cp(n_GO_INPUT_CTX_COMPOSE | n_GO_INPUT_NL_ESC, - _("Send this message [yes/no, empty: recompose]? "), NULL) - ) == NULL) - if(n_go_input_is_eof()){ - cp = n_1; - break; - } + if(n_go_input(n_GO_INPUT_CTX_COMPOSE | n_GO_INPUT_NL_ESC, + _("Send this message [yes/no, empty: recompose]? "), + &linebuf, &linesize, NULL, NULL) < 0){ + if(!n_go_input_is_eof()) + goto jerr; + cp = n_1; + } - if((b = n_boolify(cp, UIZ_MAX, TRUM1)) < FAL0) + if((b = n_boolify(linebuf, UIZ_MAX, TRUM1)) < FAL0) goto jreasksend; if(b == TRU2) goto jcont; -- 2.11.4.GIT