diff options
author | 2017-08-30 10:33:57 +0000 | |
---|---|---|
committer | 2017-08-30 10:33:57 +0000 | |
commit | 0772530e7a21dd30554c202aa0d10ae3bce30064 (patch) | |
tree | 2ee6e2dc911acaedc290aa8577975ae4aeea7924 /usr.bin/tmux/cmd-split-window.c | |
parent | No need for NULL checks before afree() (diff) | |
download | wireguard-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-split-window.c')
-rw-r--r-- | usr.bin/tmux/cmd-split-window.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-split-window.c b/usr.bin/tmux/cmd-split-window.c index 02f0f6766dd..ac39f5ce356 100644 --- a/usr.bin/tmux/cmd-split-window.c +++ b/usr.bin/tmux/cmd-split-window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-split-window.c,v 1.86 2017/07/21 09:17:19 nicm Exp $ */ +/* $OpenBSD: cmd-split-window.c,v 1.87 2017/08/30 10:33:57 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -158,7 +158,7 @@ cmd_split_window_exec(struct cmd *self, struct cmdq_item *item) if (!args_has(args, 'd')) { window_set_active_pane(w, new_wp); session_select(s, wl->idx); - cmd_find_from_session(current, s); + cmd_find_from_session(current, s, 0); server_redraw_session(s); } else server_status_session(s); @@ -172,7 +172,7 @@ cmd_split_window_exec(struct cmd *self, struct cmdq_item *item) } notify_window("window-layout-changed", w); - cmd_find_from_winlink_pane(&fs, wl, new_wp); + cmd_find_from_winlink_pane(&fs, wl, new_wp, 0); hooks_insert(s->hooks, item, &fs, "after-split-window"); free(to_free); |