mirror of
https://github.com/tmux/tmux.git
synced 2024-11-17 18:08:51 +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);
|
||||
screen_init(&md->s, menu->width + 4, menu->count + 2, 0);
|
||||
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->px = px;
|
||||
|
Loading…
Reference in New Issue
Block a user