mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 22:43:58 +00:00
Sync OpenBSD patchset 198:
Add a mode-mouse option to prevent tmux taking over the mouse in choice or copy modes.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* $Id: window-choose.c,v 1.20 2009-07-28 23:11:18 tcunha Exp $ */
|
||||
/* $Id: window-choose.c,v 1.21 2009-07-30 20:32:05 tcunha Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -123,7 +123,8 @@ window_choose_init(struct window_pane *wp)
|
||||
s = &data->screen;
|
||||
screen_init(s, screen_size_x(&wp->base), screen_size_y(&wp->base), 0);
|
||||
s->mode &= ~MODE_CURSOR;
|
||||
s->mode |= MODE_MOUSE;
|
||||
if (options_get_number(&wp->window->options, "mode-mouse"))
|
||||
s->mode |= MODE_MOUSE;
|
||||
|
||||
keys = options_get_number(&wp->window->options, "mode-keys");
|
||||
if (keys == MODEKEY_EMACS)
|
||||
|
Reference in New Issue
Block a user