diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-05-04 17:40:33 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-05-04 17:40:33 +0000 |
commit | aa24c8fa5ecd2bafeada05c35d56132fd6c03c4a (patch) | |
tree | bc004e1a641ae7af5be5d4e00f4f20ac3260ef5d | |
parent | 621f666fc94d8cc4b705a5a1b5cd5148305f207a (diff) |
Check if mouse-select-pane is ON not off when setting mouse flags,
reported by oga.
-rw-r--r-- | usr.bin/tmux/server-client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c index 7756859564d..21d196143b1 100644 --- a/usr.bin/tmux/server-client.c +++ b/usr.bin/tmux/server-client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server-client.c,v 1.54 2011/04/19 21:31:33 nicm Exp $ */ +/* $OpenBSD: server-client.c,v 1.55 2011/05/04 17:40:32 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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; |