From b197a78e9d8c8f152ead9b1266aff382991ea7a3 Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 8 Jun 2015 15:34:03 +0000 Subject: add client label --- search.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/search.c b/search.c index 0acfd2c..44f233e 100644 --- a/search.c +++ b/search.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: search.c,v 1.42 2015/01/19 14:54:16 okan Exp $ + * $OpenBSD: search.c,v 1.43 2015/06/08 15:34:03 okan Exp $ */ #include @@ -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) { -- cgit v1.2.3-2-gb3c3