mirror of
https://github.com/tmux/tmux.git
synced 2025-01-13 03:48:51 +00:00
As well as setting up the state, actually use it in cmd_find_target.
This commit is contained in:
parent
99e9a4c786
commit
a337403868
@ -931,10 +931,11 @@ cmd_find_target(struct cmd_find_state *fs, struct cmd_q *cmdq,
|
|||||||
cmd_find_clear_state(fs, cmdq, flags);
|
cmd_find_clear_state(fs, cmdq, flags);
|
||||||
|
|
||||||
/* Find current state. */
|
/* Find current state. */
|
||||||
fs->current = NULL;
|
|
||||||
if (server_check_marked() && (flags & CMD_FIND_DEFAULT_MARKED))
|
if (server_check_marked() && (flags & CMD_FIND_DEFAULT_MARKED))
|
||||||
fs->current = &marked_pane;
|
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);
|
cmd_find_clear_state(¤t, cmdq, flags);
|
||||||
if (cmd_find_current_session(¤t) != 0) {
|
if (cmd_find_current_session(¤t) != 0) {
|
||||||
if (~flags & CMD_FIND_QUIET)
|
if (~flags & CMD_FIND_QUIET)
|
||||||
|
Loading…
Reference in New Issue
Block a user