From ad05722c1a9aabddf837fc4b87f3022a8ce6d74b Mon Sep 17 00:00:00 2001 From: Pietro Cerutti Date: Tue, 2 Jan 2018 11:59:43 +0000 Subject: [PATCH] Fix line split logic in help (#1019) * Fix line split logic in help Fixes #1018 --- help.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/help.c b/help.c index e1dbe9f74..b2a9bd739 100644 --- a/help.c +++ b/help.c @@ -218,15 +218,14 @@ static void format_line(FILE *f, int ismacro, const char *t1, const char *t2, co { int col; int col_a, col_b; - int split; + bool split; int n; fputs(t1, f); - /* don't try to press string into one line with less than 40 characters. - The double parenthesis avoids a gcc warning, sigh ... */ - split = MuttIndexWindow->cols; - if (split < 40) + /* don't try to press string into one line with less than 40 characters. */ + split = (MuttIndexWindow->cols < 40); + if (split) { col_a = col = 0; col_b = LONG_STRING; -- 2.40.0