]> granicus.if.org Git - neomutt/commitdiff
boolify: mutt_simple_format()
authorRichard Russon <rich@flatcap.org>
Wed, 11 Sep 2019 12:16:35 +0000 (13:16 +0100)
committerRichard Russon <rich@flatcap.org>
Wed, 11 Sep 2019 14:41:02 +0000 (15:41 +0100)
curs_lib.c

index 333abb5b0de390c78afadcaeaa7d425ed9a54397..8212d56e919e628d8365816e44d7ee74649522a0 100644 (file)
@@ -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))