From: Richard Russon Date: Wed, 8 Aug 2018 15:51:44 +0000 (+0100) Subject: config: fix dump X-Git-Tag: 2019-10-25~694^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aec1ed25beb450762062fb469251c51c4fb9c4a2;p=neomutt config: fix dump --- diff --git a/config/dump.c b/config/dump.c index e480424ff..9529a30d0 100644 --- a/config/dump.c +++ b/config/dump.c @@ -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);