aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-05-05 10:09:55 (GMT)
committerJouni Malinen <j@w1.fi>2013-05-05 10:09:55 (GMT)
commitad0685e901e0a4610128ce173fe737c4390af15c (patch)
tree436d577056025c51242927e9ce082e2ebc7120f0
parent9be371437ed1f2122ad8efd2b1da6761ced33476 (diff)
downloadhostap-ad0685e901e0a4610128ce173fe737c4390af15c.zip
hostap-ad0685e901e0a4610128ce173fe737c4390af15c.tar.gz
hostap-ad0685e901e0a4610128ce173fe737c4390af15c.tar.bz2
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>
-rw-r--r--src/utils/edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/edit.c b/src/utils/edit.c
index b01e08d..177ecf4 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);