From 17cf1b21c6c30a2d7b8cf7d9a29f495a9b01c475 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 30 Aug 2017 10:33:57 +0000 Subject: Pass flags into cmd_find_from_* to fix prefer-unattached, reported by Thomas Sattler. --- cmd-attach-session.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd-attach-session.c') diff --git a/cmd-attach-session.c b/cmd-attach-session.c index 81ed4a87..38d9f8a2 100644 --- a/cmd-attach-session.c +++ b/cmd-attach-session.c @@ -90,9 +90,9 @@ cmd_attach_session(struct cmdq_item *item, const char *tflag, int dflag, window_set_active_pane(wp->window, wp); session_set_current(s, wl); if (wp != NULL) - cmd_find_from_winlink_pane(current, wl, wp); + cmd_find_from_winlink_pane(current, wl, wp, 0); else - cmd_find_from_winlink(current, wl); + cmd_find_from_winlink(current, wl, 0); } if (cflag != NULL) { -- cgit