From cf859c3404f849ec7907cfbc1e0f89e496b4a823 Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 2 Dec 2013 19:30:27 +0000 Subject: Prepend the group shortcut in the client search menu; from Thomas Adam. Likewise, prepend shortcut in unhide menu. --- search.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'search.c') diff --git a/search.c b/search.c index a7f448c..5c4483f 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.31 2013/04/30 21:11:07 okan Exp $ + * $OpenBSD: search.c,v 1.32 2013/12/02 19:30:27 okan Exp $ */ #include @@ -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) { -- cgit v1.2.3-2-gb3c3