mirror of
https://github.com/tmux/tmux.git
synced 2024-11-18 02:18:53 +00:00
Turn on both button and all mouse modes for menus since some terminals
only support the former.
This commit is contained in:
parent
34312fd6ee
commit
a0b39dba31
2
menu.c
2
menu.c
@ -381,7 +381,7 @@ menu_prepare(struct menu *menu, int flags, struct cmdq_item *item, u_int px,
|
|||||||
cmd_find_copy_state(&md->fs, fs);
|
cmd_find_copy_state(&md->fs, fs);
|
||||||
screen_init(&md->s, menu->width + 4, menu->count + 2, 0);
|
screen_init(&md->s, menu->width + 4, menu->count + 2, 0);
|
||||||
if (~md->flags & MENU_NOMOUSE)
|
if (~md->flags & MENU_NOMOUSE)
|
||||||
md->s.mode |= MODE_MOUSE_BUTTON;
|
md->s.mode |= (MODE_MOUSE_ALL|MODE_MOUSE_BUTTON);
|
||||||
md->s.mode &= ~MODE_CURSOR;
|
md->s.mode &= ~MODE_CURSOR;
|
||||||
|
|
||||||
md->px = px;
|
md->px = px;
|
||||||
|
Loading…
Reference in New Issue
Block a user