about summary refs log tree commit diff
path: root/search.c
diff options
context:
space:
mode:
authorokan <okan>2013-12-02 19:30:27 +0000
committerokan <okan>2013-12-02 19:30:27 +0000
commitd1b232fe8111cb748383727528aa90bbe740b507 (patch)
tree08cdf2c0cb03558e2237df638fcd31c45a3de3c4 /search.c
parent6b72168d9243bed163cd90d6271b5df7d151f6e8 (diff)
downloadcwm-d1b232fe8111cb748383727528aa90bbe740b507.tar.gz
cwm-d1b232fe8111cb748383727528aa90bbe740b507.tar.xz
cwm-d1b232fe8111cb748383727528aa90bbe740b507.zip
Prepend the group shortcut in the client search menu; from Thomas Adam.
Likewise, prepend shortcut in unhide menu.
Diffstat (limited to 'search.c')
-rw-r--r--search.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/search.c b/search.c
index 20e7621..4d5a7c1 100644
--- a/search.c
+++ b/search.c
@@ -142,8 +142,8 @@ search_print_client(struct menu *mi, int list)
 	if (list)
 		cc->matchname = cc->name;
 
-	(void)snprintf(mi->print, sizeof(mi->print), "%c%s", flag,
-	    cc->matchname);
+	(void)snprintf(mi->print, sizeof(mi->print), "(%d) %c%s",
+	    cc->group->shortcut, flag, cc->matchname);
 
 	if (!list && cc->matchname != cc->name &&
 	    strlen(mi->print) < sizeof(mi->print) - 1) {