Skip to content

Commit

Permalink
fix the fix :(
Browse files Browse the repository at this point in the history
  • Loading branch information
stsp committed Oct 14, 2023
1 parent be74b54 commit ef0fdeb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/command.c
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,7 @@ static void prompt_for_and_get_cmd(void)
_setcursortype(_SOLIDCURSOR);

need_store = 0;
conbuf[0] = '\0';
do {
/* Wait and get raw key code */
key = keyb_get_rawcode();
Expand Down Expand Up @@ -690,10 +691,7 @@ 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 ef0fdeb

Please sign in to comment.