mirror of
https://github.com/tmux/tmux.git
synced 2026-05-30 14:16:18 +00:00
Do not think we need this.
This commit is contained in:
@@ -978,20 +978,15 @@ cmd_find_target(struct cmd_find_state *fs, struct cmdq_item *item,
|
|||||||
} else if (cmd_find_from_client(¤t, cmdq_get_client(item),
|
} else if (cmd_find_from_client(¤t, cmdq_get_client(item),
|
||||||
flags) == 0) {
|
flags) == 0) {
|
||||||
fs->current = ¤t;
|
fs->current = ¤t;
|
||||||
/* No active pane, window empty, return the window instead. */
|
|
||||||
if (current.wp == NULL) {
|
|
||||||
type = CMD_FIND_WINDOW;
|
|
||||||
}
|
|
||||||
log_debug("%s: current is from client", __func__);
|
log_debug("%s: current is from client", __func__);
|
||||||
} else {
|
} else {
|
||||||
if (~flags & CMD_FIND_QUIET)
|
if (~flags & CMD_FIND_QUIET)
|
||||||
cmdq_error(item, "no current target");
|
cmdq_error(item, "no current target");
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
if (!cmd_find_valid_state(fs->current))
|
if (!cmd_find_valid_state(fs->current))
|
||||||
fatalx("invalid current find state");
|
fatalx("invalid current find state");
|
||||||
*/
|
|
||||||
/* An empty or NULL target is the current. */
|
/* An empty or NULL target is the current. */
|
||||||
if (target == NULL || *target == '\0')
|
if (target == NULL || *target == '\0')
|
||||||
goto current;
|
goto current;
|
||||||
@@ -1030,7 +1025,7 @@ cmd_find_target(struct cmd_find_state *fs, struct cmdq_item *item,
|
|||||||
fs->w = fs->wl->window;
|
fs->w = fs->wl->window;
|
||||||
fs->wp = fs->w->active;
|
fs->wp = fs->w->active;
|
||||||
}
|
}
|
||||||
goto found;
|
break;
|
||||||
}
|
}
|
||||||
if (fs->wp == NULL) {
|
if (fs->wp == NULL) {
|
||||||
if (~flags & CMD_FIND_QUIET)
|
if (~flags & CMD_FIND_QUIET)
|
||||||
|
|||||||
Reference in New Issue
Block a user