From ad0685e901e0a4610128ce173fe737c4390af15c Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 5 May 2013 13:09:55 +0300 Subject: [PATCH] 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 --- src/utils/edit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/edit.c b/src/utils/edit.c index b01e08dfc..177ecf41d 100644 --- a/src/utils/edit.c +++ b/src/utils/edit.c @@ -345,7 +345,7 @@ static void insert_char(int c) static void process_cmd(void) { - + currbuf_valid = 0; if (cmdbuf_len == 0) { printf("\n%s> ", ps2 ? ps2 : ""); fflush(stdout);