]> granicus.if.org Git - neomutt/commitdiff
config: fix dump
authorRichard Russon <rich@flatcap.org>
Wed, 8 Aug 2018 15:51:44 +0000 (16:51 +0100)
committerRichard Russon <rich@flatcap.org>
Thu, 16 Aug 2018 15:18:42 +0000 (16:18 +0100)
config/dump.c

index e480424ff0887a19fd1c593ea61da3cea0ab31a3..9529a30d05afb07e32ddd9a98304b49e5c0e8125 100644 (file)
@@ -220,6 +220,8 @@ void dump_config_neo(struct ConfigSet *cs, struct HashElem *he,
   }
 }
 
+void mutt_pretty_mailbox(char *s, size_t buflen);
+
 /**
  * dump_config - Write all the config to stdout
  * @param cs    ConfigSet to dump
@@ -280,7 +282,7 @@ bool dump_config(struct ConfigSet *cs, int style, int flags)
         if ((type == DT_PATH) && (value->data[0] == '/'))
           mutt_pretty_mailbox(value->data, value->dsize);
 
-        if ((type != DT_BOOL) && (type != DT_NUMBER) && (type != DT_QUAD) &&
+        if ((type != DT_BOOL) && (type != DT_NUMBER) && (type != DT_LONG) && (type != DT_QUAD) &&
             !(flags & CS_DUMP_NO_ESCAPING))
         {
           mutt_buffer_reset(tmp);
@@ -299,10 +301,10 @@ bool dump_config(struct ConfigSet *cs, int style, int flags)
           break;
         }
 
-        // if (type == DT_PATH)
-        //   mutt_pretty_mailbox(value->data, value->dsize);
+        if (type == DT_PATH)
+          mutt_pretty_mailbox(value->data, value->dsize);
 
-        if ((type != DT_BOOL) && (type != DT_NUMBER) && (type != DT_QUAD) &&
+        if ((type != DT_BOOL) && (type != DT_NUMBER) && (type != DT_LONG) && (type != DT_QUAD) &&
             !(flags & CS_DUMP_NO_ESCAPING))
         {
           mutt_buffer_reset(tmp);