mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-23 16:43:11 +01:00
Sync OpenBSD patchset 900:
Check if mouse-select-pane is ON not off when setting mouse flags, reported by oga.
This commit is contained in:
parent
4846af8f95
commit
a734b41fda
@ -1,4 +1,4 @@
|
||||
/* $Id: server-client.c,v 1.57 2011-04-25 20:33:42 tcunha Exp $ */
|
||||
/* $Id: server-client.c,v 1.58 2011-05-05 10:03:05 tcunha Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -468,7 +468,7 @@ server_client_reset_state(struct client *c)
|
||||
mode = s->mode;
|
||||
if ((mode & ALL_MOUSE_MODES) == 0) {
|
||||
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;
|
||||
else if (options_get_number(oo, "mouse-select-window"))
|
||||
mode |= MODE_MOUSE_STANDARD;
|
||||
|
Loading…
Reference in New Issue
Block a user