summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-07-16 22:25:00 +0200
committerDave Davenport <qball@gmpclient.org>2016-07-16 22:25:00 +0200
commite9c3b930bc110c6f5cf5afd1c968458084904cae (patch)
treebc9a4d8d0942aaef7525717254bc5077329756f5
parentfc24fcca22a86a129b567eeb42fe00aeac8445ed (diff)
[Window] Chomp result
Fixes #426
-rw-r--r--source/dialogs/window.c2
1 files changed, 1 insertions, 1 deletions
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 )