Add different command historys for different types of prompts ("command",

"search" etc). From Anindya Mukherjee.
This commit is contained in:
Nicholas Marriott
2021-05-03 07:39:32 +01:00
parent 40467726e3
commit c03b57465b
13 changed files with 356 additions and 96 deletions

View File

@ -74,7 +74,7 @@ cmd_confirm_before_exec(struct cmd *self, struct cmdq_item *item)
status_prompt_set(tc, target, new_prompt, NULL,
cmd_confirm_before_callback, cmd_confirm_before_free, cdata,
PROMPT_SINGLE);
PROMPT_SINGLE, PROMPT_TYPE_COMMAND);
free(new_prompt);
return (CMD_RETURN_NORMAL);