edit: Fix history processing on running old command
currbuf_valid needs to be cleared when an old command from history is processed to avoid leaving a bogus entry that makes history_prev() skip the last entry in history. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
9be371437e
commit
ad0685e901
1 changed files with 1 additions and 1 deletions
|
@ -345,7 +345,7 @@ static void insert_char(int c)
|
||||||
|
|
||||||
static void process_cmd(void)
|
static void process_cmd(void)
|
||||||
{
|
{
|
||||||
|
currbuf_valid = 0;
|
||||||
if (cmdbuf_len == 0) {
|
if (cmdbuf_len == 0) {
|
||||||
printf("\n%s> ", ps2 ? ps2 : "");
|
printf("\n%s> ", ps2 ? ps2 : "");
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
Loading…
Reference in a new issue