summaryrefslogtreecommitdiffstats
path: root/mode-tree.c
diff options
context:
space:
mode:
authornicm <nicm>2023-01-20 21:36:00 +0000
committernicm <nicm>2023-01-20 21:36:00 +0000
commit3aa458ea6398b0de37c3e146304bd2a4e17ea3c0 (patch)
treec7940f0d27db91583fd08b9099409a8998a6b087 /mode-tree.c
parent9789ea3fb4b3215e48b3f0024e2c21c50f95edec (diff)
Add a flag to display-menu to select the manu item chosen first, GitHub
issue 3442.
Diffstat (limited to 'mode-tree.c')
-rw-r--r--mode-tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mode-tree.c b/mode-tree.c
index c007e27f..9d465e7b 100644
--- a/mode-tree.c
+++ b/mode-tree.c
@@ -962,8 +962,8 @@ mode_tree_display_menu(struct mode_tree_data *mtd, struct client *c, u_int x,
x -= (menu->width + 4) / 2;
else
x = 0;
- if (menu_display(menu, 0, NULL, x, y, c, NULL, mode_tree_menu_callback,
- mtm) != 0)
+ if (menu_display(menu, 0, 0, NULL, x, y, c, NULL,
+ mode_tree_menu_callback, mtm) != 0)
menu_free(menu);
}