tmux: don't leak menu if the tty is too small to display it

ok nicm
This commit is contained in:
tb
2026-03-06 08:19:22 +00:00
parent 2c7f73f9c4
commit 91b5108eae

View File

@@ -371,7 +371,7 @@ cmd_display_menu_exec(struct cmd *self, struct cmdq_item *item)
flags |= MENU_NOMOUSE; flags |= MENU_NOMOUSE;
if (menu_display(menu, flags, starting_choice, item, px, py, tc, lines, if (menu_display(menu, flags, starting_choice, item, px, py, tc, lines,
style, selected_style, border_style, target, NULL, NULL) != 0) style, selected_style, border_style, target, NULL, NULL) != 0)
return (CMD_RETURN_NORMAL); goto out;
return (CMD_RETURN_WAIT); return (CMD_RETURN_WAIT);
out: out: