aboutsummaryrefslogtreecommitdiffstats
path: root/search.c
diff options
context:
space:
mode:
authorokan2015-06-08 15:34:03 +0000
committerokan2015-06-08 15:34:03 +0000
commitb197a78e9d8c8f152ead9b1266aff382991ea7a3 (patch)
treedb7b4a41f1b1a85a88995742a7654d9f22853b31 /search.c
parenta9121c4a3d2d0952061f7cf9d9f32460be6f0601 (diff)
downloadcwm-b197a78e9d8c8f152ead9b1266aff382991ea7a3.tar.gz
add client label
Diffstat (limited to '')
-rw-r--r--search.c7
1 files 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 <sys/types.h>
@@ -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) {