diff options
author | Kevin McCarthy <kevin@8t8.us> | 2020-08-10 11:19:46 -0700 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2020-08-10 11:19:46 -0700 |
commit | a84e8823656ced9dc6824d63dbc71e826599a785 (patch) | |
tree | 1b56c61c74a84cbdcd44033fa47a95cc3860ccac /help.c | |
parent | 17df35f0b7eb80f0ec99f2902b0ab1b899f54454 (diff) |
Improve clarity of help format_line() splitting.
Thanks to Zero King for the initial patch. He says the original line
confused some static analysis tools.
I don't see anything wrong with the operator precedence, but as long
as we are cleaning up the line, split assignment and conditional
evaluation to make it even clearer.
Diffstat (limited to 'help.c')
-rw-r--r-- | help.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -207,9 +207,9 @@ static void format_line (FILE *f, int ismacro, 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 ... */ - if ((split = MuttIndexWindow->cols < 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; |