[Window] Chomp result

Fixes #426
This commit is contained in:
Dave Davenport 2016-07-16 22:25:00 +02:00
parent fc24fcca22
commit e9c3b930bc
1 changed files with 1 additions and 1 deletions

View File

@ -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 )