mirror of
https://github.com/tmux/tmux.git
synced 2025-04-21 20:08:48 +00:00
Add missing error message when no target, GitHub issue 971.
This commit is contained in:
parent
ac7080b31b
commit
dec00d3579
@ -977,8 +977,11 @@ cmd_find_target(struct cmd_find_state *fs, struct cmdq_item *item,
|
|||||||
} else if (cmd_find_from_client(¤t, item->client) == 0) {
|
} else if (cmd_find_from_client(¤t, item->client) == 0) {
|
||||||
fs->current = ¤t;
|
fs->current = ¤t;
|
||||||
log_debug("%s: current is from client", __func__);
|
log_debug("%s: current is from client", __func__);
|
||||||
} else
|
} else {
|
||||||
|
if (~flags & CMD_FIND_QUIET)
|
||||||
|
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");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user