don't add space infront of summary

fix github issue #79
This commit is contained in:
Sascha Kruse 2012-12-21 15:28:53 +01:00
parent 2650d3667c
commit dd1b2f3cc7

14
dunst.c
View File

@ -571,19 +571,11 @@ void add_notification_to_line_cache(notification *n, int max_width)
char *buf;
/* print dup_count */
/* print dup_count and msg*/
if (n->dup_count > 0) {
sasprintf(&buf, "(%d)", n->dup_count);
sasprintf(&buf, "(%d) %s", n->dup_count, msg);
} else {
buf = strdup("");
}
/* print msg */
{
char *new_buf;
sasprintf(&new_buf, "%s %s", buf, msg);
free(buf);
buf = new_buf;
buf = strdup(msg);
}
/* print age */