From e00b1bde6753256661c0cf7d55b9182e8f16f564 Mon Sep 17 00:00:00 2001 From: Scoopta Date: Sun, 26 Jan 2020 00:22:23 -0800 Subject: [PATCH] Setting dmenu-separator=\\n will now correctly set it to `\n` --- modes/dmenu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modes/dmenu.c b/modes/dmenu.c index 79cd66d..ada2f0b 100644 --- a/modes/dmenu.c +++ b/modes/dmenu.c @@ -35,6 +35,10 @@ void wofi_dmenu_init(struct mode* this, struct map* config) { parse_action = strcmp(config_get(config, "parse_action", "false"), "true") == 0; separator = config_get(config, "separator", "\n"); + if(strcmp(separator, "\\n") == 0) { + separator = "\n"; + } + wl_list_init(&widgets); struct map* cached = map_init();