From: Richard Russon Date: Wed, 11 Sep 2019 12:16:35 +0000 (+0100) Subject: boolify: mutt_simple_format() X-Git-Tag: 2019-10-25~47^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=342a11d054f4b878636ff39476018649b852a0ad;p=neomutt boolify: mutt_simple_format() --- diff --git a/curs_lib.c b/curs_lib.c index 333abb5b0..8212d56e9 100644 --- a/curs_lib.c +++ b/curs_lib.c @@ -1002,7 +1002,7 @@ void mutt_simple_format(char *buf, size_t buflen, int min_width, int max_width, size_t k, k2; char scratch[MB_LEN_MAX]; mbstate_t mbstate1, mbstate2; - int escaped = 0; + bool escaped = false; memset(&mbstate1, 0, sizeof(mbstate1)); memset(&mbstate2, 0, sizeof(mbstate2)); @@ -1020,12 +1020,12 @@ void mutt_simple_format(char *buf, size_t buflen, int min_width, int max_width, } if (escaped) { - escaped = 0; + escaped = false; w = 0; } else if (arboreal && (wc == MUTT_SPECIAL_INDEX)) { - escaped = 1; + escaped = true; w = 0; } else if (arboreal && (wc < MUTT_TREE_MAX))