about summary refs log tree commit diff
path: root/search.c
diff options
context:
space:
mode:
authorokan <okan>2015-06-08 15:34:03 +0000
committerokan <okan>2015-06-08 15:34:03 +0000
commit8888c44888c65f1ba76b1ddc5e37dbc644856642 (patch)
tree320c68d6003e225c649877ed43a333710a3dc90b /search.c
parent9180bb1a06abc01e8b0eaa0ae6b8c934988a8f6e (diff)
downloadcwm-8888c44888c65f1ba76b1ddc5e37dbc644856642.tar.gz
cwm-8888c44888c65f1ba76b1ddc5e37dbc644856642.tar.xz
cwm-8888c44888c65f1ba76b1ddc5e37dbc644856642.zip
add client label
Diffstat (limited to 'search.c')
-rw-r--r--search.c5
1 files 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) {