=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-display-menu.c,v retrieving revision 1.41 retrieving revision 1.42 diff -c -r1.41 -r1.42 *** src/usr.bin/tmux/cmd-display-menu.c 2023/08/08 08:08:47 1.41 --- src/usr.bin/tmux/cmd-display-menu.c 2023/08/15 07:01:47 1.42 *************** *** 1,4 **** ! /* $OpenBSD: cmd-display-menu.c,v 1.41 2023/08/08 08:08:47 nicm Exp $ */ /* * Copyright (c) 2019 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: cmd-display-menu.c,v 1.42 2023/08/15 07:01:47 nicm Exp $ */ /* * Copyright (c) 2019 Nicholas Marriott *************** *** 39,49 **** .name = "display-menu", .alias = "menu", ! .args = { "b:c:C:t:s:S:OT:x:y:", 1, -1, cmd_display_menu_args_parse }, .usage = "[-O] [-b border-lines] [-c target-client] " ! "[-C starting-choice] [-s style] [-S border-style] " ! CMD_TARGET_PANE_USAGE "[-T title] [-x position] [-y position] " ! "name key command ...", .target = { 't', CMD_FIND_PANE, 0 }, --- 39,49 ---- .name = "display-menu", .alias = "menu", ! .args = { "b:c:C:H:s:S:Ot:T:x:y:", 1, -1, cmd_display_menu_args_parse }, .usage = "[-O] [-b border-lines] [-c target-client] " ! "[-C starting-choice] [-H selected-style] [-s style] " ! "[-S border-style] " CMD_TARGET_PANE_USAGE "[-T title] " ! "[-x position] [-y position] name key command ...", .target = { 't', CMD_FIND_PANE, 0 }, *************** *** 293,298 **** --- 293,299 ---- const char *key, *name, *value; const char *style = args_get(args, 's'); const char *border_style = args_get(args, 'S'); + const char *selected_style = args_get(args, 'H'); enum box_lines lines = BOX_LINES_DEFAULT; char *title, *cause; int flags = 0, starting_choice = 0; *************** *** 376,382 **** if (!event->m.valid) flags |= MENU_NOMOUSE; if (menu_display(menu, flags, starting_choice, item, px, py, tc, lines, ! style, border_style, target, NULL, NULL) != 0) return (CMD_RETURN_NORMAL); return (CMD_RETURN_WAIT); } --- 377,383 ---- if (!event->m.valid) flags |= MENU_NOMOUSE; if (menu_display(menu, flags, starting_choice, item, px, py, tc, lines, ! style, selected_style, border_style, target, NULL, NULL) != 0) return (CMD_RETURN_NORMAL); return (CMD_RETURN_WAIT); }