From: Jouni Malinen Date: Sun, 5 May 2013 10:09:55 +0000 (+0300) Subject: edit: Fix history processing on running old command X-Git-Tag: aosp-kk-from-upstream~295 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad0685e;p=thirdparty%2Fhostap.git 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 --- 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);