From 7dddf56c081cf1e51dbcbf5e8881701122a1f22f Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 4 May 2011 17:40:32 +0000 Subject: [PATCH] Check if mouse-select-pane is ON not off when setting mouse flags, reported by oga. --- server-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server-client.c b/server-client.c index ef4946a1..454859e6 100644 --- a/server-client.c +++ b/server-client.c @@ -469,7 +469,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;