From 8888c44888c65f1ba76b1ddc5e37dbc644856642 Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 8 Jun 2015 15:34:03 +0000 Subject: [PATCH] add client label --- search.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/search.c b/search.c index ac9f632..770159b 100644 --- a/search.c +++ b/search.c @@ -143,8 +143,9 @@ search_print_client(struct menu *mi, int list) if (list) cc->matchname = cc->name; - (void)snprintf(mi->print, sizeof(mi->print), "(%d) %c%s", - cc->group ? cc->group->num : 0, flag, cc->matchname); + (void)snprintf(mi->print, sizeof(mi->print), "(%d) %c[%s] %s", + cc->group ? cc->group->num : 0, flag, + cc->label ? cc->label : "", cc->matchname); if (!list && cc->matchname != cc->name && strlen(mi->print) < sizeof(mi->print) - 1) {