parent
2650d3667c
commit
dd1b2f3cc7
14
dunst.c
14
dunst.c
@ -571,19 +571,11 @@ void add_notification_to_line_cache(notification *n, int max_width)
|
|||||||
|
|
||||||
char *buf;
|
char *buf;
|
||||||
|
|
||||||
/* print dup_count */
|
/* print dup_count and msg*/
|
||||||
if (n->dup_count > 0) {
|
if (n->dup_count > 0) {
|
||||||
sasprintf(&buf, "(%d)", n->dup_count);
|
sasprintf(&buf, "(%d) %s", n->dup_count, msg);
|
||||||
} else {
|
} else {
|
||||||
buf = strdup("");
|
buf = strdup(msg);
|
||||||
}
|
|
||||||
|
|
||||||
/* print msg */
|
|
||||||
{
|
|
||||||
char *new_buf;
|
|
||||||
sasprintf(&new_buf, "%s %s", buf, msg);
|
|
||||||
free(buf);
|
|
||||||
buf = new_buf;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* print age */
|
/* print age */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user