Expand target from client and use it to expand the prompt.

This commit is contained in:
Nicholas Marriott
2020-05-14 10:35:26 +01:00
parent 09a2246b00
commit 12eceaf2b3
8 changed files with 32 additions and 23 deletions

View File

@ -522,7 +522,7 @@ cmdq_find_flag(struct cmdq_item *item, struct cmd_find_state *fs,
const char *value;
if (flag->flag == 0) {
cmd_find_clear_state(fs, 0);
cmd_find_from_client(fs, item->target_client, 0);
return (CMD_RETURN_NORMAL);
}
@ -610,7 +610,6 @@ cmdq_fire_command(struct cmdq_item *item)
if (retval == CMD_RETURN_ERROR)
goto out;
retval = entry->exec(cmd, item);
if (retval == CMD_RETURN_ERROR)
goto out;