summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-select-pane.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2017-08-30 10:33:57 +0000
committernicm <nicm@openbsd.org>2017-08-30 10:33:57 +0000
commit0772530e7a21dd30554c202aa0d10ae3bce30064 (patch)
tree2ee6e2dc911acaedc290aa8577975ae4aeea7924 /usr.bin/tmux/cmd-select-pane.c
parentNo need for NULL checks before afree() (diff)
downloadwireguard-openbsd-0772530e7a21dd30554c202aa0d10ae3bce30064.tar.xz
wireguard-openbsd-0772530e7a21dd30554c202aa0d10ae3bce30064.zip
Pass flags into cmd_find_from_* to fix prefer-unattached, reported by
Thomas Sattler.
Diffstat (limited to 'usr.bin/tmux/cmd-select-pane.c')
-rw-r--r--usr.bin/tmux/cmd-select-pane.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-select-pane.c b/usr.bin/tmux/cmd-select-pane.c
index 7d502fc1034..9e76625bf0c 100644
--- a/usr.bin/tmux/cmd-select-pane.c
+++ b/usr.bin/tmux/cmd-select-pane.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-select-pane.c,v 1.39 2017/08/08 09:21:20 nicm Exp $ */
+/* $OpenBSD: cmd-select-pane.c,v 1.40 2017/08/30 10:33:57 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -77,7 +77,7 @@ cmd_select_pane_exec(struct cmd *self, struct cmdq_item *item)
server_unzoom_window(w);
window_redraw_active_switch(w, lastwp);
if (window_set_active_pane(w, lastwp)) {
- cmd_find_from_winlink(current, wl);
+ cmd_find_from_winlink(current, wl, 0);
server_status_window(w);
server_redraw_window_borders(w);
}
@@ -156,7 +156,7 @@ cmd_select_pane_exec(struct cmd *self, struct cmdq_item *item)
}
window_redraw_active_switch(w, wp);
if (window_set_active_pane(w, wp)) {
- cmd_find_from_winlink_pane(current, wl, wp);
+ cmd_find_from_winlink_pane(current, wl, wp, 0);
hooks_insert(s->hooks, item, current, "after-select-pane");
server_status_window(w);
server_redraw_window_borders(w);