diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2013-12-02 19:30:28 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2013-12-02 19:30:28 +0000 |
commit | f436d272d0423973315314885aa77ac19546fc5e (patch) | |
tree | 528de72648570f12bc160d4a6c81b9e2bc58104d /app/cwm/search.c | |
parent | 42784f92ce7e4a6c30428a0af4dab265639ef0d8 (diff) |
Prepend the group shortcut in the client search menu; from Thomas Adam.
Likewise, prepend shortcut in unhide menu.
Diffstat (limited to 'app/cwm/search.c')
-rw-r--r-- | app/cwm/search.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/cwm/search.c b/app/cwm/search.c index a7f448cdf..5c4483f59 100644 --- a/app/cwm/search.c +++ b/app/cwm/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 <sys/param.h> @@ -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) { |