From a337403868cb55f2d7f197cce6e5b18c1154540c Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 17 Dec 2015 23:08:22 +0000 Subject: [PATCH] As well as setting up the state, actually use it in cmd_find_target. --- cmd-find.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd-find.c b/cmd-find.c index 15dfa596..9b1ca517 100644 --- a/cmd-find.c +++ b/cmd-find.c @@ -931,10 +931,11 @@ cmd_find_target(struct cmd_find_state *fs, struct cmd_q *cmdq, cmd_find_clear_state(fs, cmdq, flags); /* Find current state. */ - fs->current = NULL; if (server_check_marked() && (flags & CMD_FIND_DEFAULT_MARKED)) fs->current = &marked_pane; - if (fs->current == NULL) { + else if (cmd_find_valid_state(&cmdq->current)) + fs->current = &cmdq->current; + else { cmd_find_clear_state(¤t, cmdq, flags); if (cmd_find_current_session(¤t) != 0) { if (~flags & CMD_FIND_QUIET)