all mapped clients now should have a group, so simplify some cases

This commit is contained in:
okan
2014-02-07 21:59:56 +00:00
parent 3cb81ebeea
commit 2a87320bbf
3 changed files with 3 additions and 7 deletions

View File

@@ -143,7 +143,7 @@ search_print_client(struct menu *mi, int list)
cc->matchname = cc->name;
(void)snprintf(mi->print, sizeof(mi->print), "(%d) %c%s",
cc->group ? cc->group->shortcut : 0, flag, cc->matchname);
cc->group->shortcut, flag, cc->matchname);
if (!list && cc->matchname != cc->name &&
strlen(mi->print) < sizeof(mi->print) - 1) {