From e9c3b930bc110c6f5cf5afd1c968458084904cae Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Sat, 16 Jul 2016 22:25:00 +0200 Subject: [PATCH] [Window] Chomp result Fixes #426 --- source/dialogs/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dialogs/window.c b/source/dialogs/window.c index aab870c4..0f06b932 100644 --- a/source/dialogs/window.c +++ b/source/dialogs/window.c @@ -680,7 +680,7 @@ static char * _generate_display_string ( const ModeModePrivateData *pd, client * struct arg d = { pd, c }; char *res = g_regex_replace_eval ( pd->window_regex, config.window_format, -1, 0, 0, helper_eval_cb, &d, NULL ); - return res; + return g_strchomp(res); } static char *_get_display_value ( const Mode *sw, unsigned int selected_line, int *state, int get_entry )