Skip to content

Commit

Permalink
fix regression of 6a767de
Browse files Browse the repository at this point in the history
  • Loading branch information
stsp committed Oct 14, 2023
1 parent 4c915fd commit be74b54
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/command.c
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,10 @@ static void prompt_for_and_get_cmd(void)
if (need_store)
cmdbuf_store(conbuf);
else
{
cmdbuf_reset();
conbuf[0] = '\0';
}
strcpy(cmd_line, conbuf);
/* Get the size of typed string */
len = strlen(conbuf);
Expand Down

0 comments on commit be74b54

Please sign in to comment.