mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 10:08:47 +00:00
Check if mouse-select-pane is ON not off when setting mouse flags,
reported by oga.
This commit is contained in:
parent
075816eb72
commit
7dddf56c08
@ -469,7 +469,7 @@ server_client_reset_state(struct client *c)
|
|||||||
mode = s->mode;
|
mode = s->mode;
|
||||||
if ((mode & ALL_MOUSE_MODES) == 0) {
|
if ((mode & ALL_MOUSE_MODES) == 0) {
|
||||||
if (TAILQ_NEXT(TAILQ_FIRST(&w->panes), entry) != NULL &&
|
if (TAILQ_NEXT(TAILQ_FIRST(&w->panes), entry) != NULL &&
|
||||||
options_get_number(oo, "mouse-select-pane") == 0)
|
options_get_number(oo, "mouse-select-pane"))
|
||||||
mode |= MODE_MOUSE_STANDARD;
|
mode |= MODE_MOUSE_STANDARD;
|
||||||
else if (options_get_number(oo, "mouse-select-window"))
|
else if (options_get_number(oo, "mouse-select-window"))
|
||||||
mode |= MODE_MOUSE_STANDARD;
|
mode |= MODE_MOUSE_STANDARD;
|
||||||
|
Loading…
Reference in New Issue
Block a user