projects
/
qemu
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be0164f
)
Reset buffer pointers after CR/LF, by Jim Paris.
author
ths
<ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 26 Aug 2007 17:33:53 +0000
(17:33 +0000)
committer
ths
<ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 26 Aug 2007 17:33:53 +0000
(17:33 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3145
c046a42c
-6fe2-441c-8c8c-
71466251a162
readline.c
patch
|
blob
|
history
diff --git
a/readline.c
b/readline.c
index
25572dd
..
577881a
100644
(file)
--- a/
readline.c
+++ b/
readline.c
@@
-374,6
+374,10
@@
void readline_handle_byte(int ch)
if (!term_is_password)
term_hist_add(term_cmd_buf);
term_printf("\n");
+ term_cmd_buf_index = 0;
+ term_cmd_buf_size = 0;
+ term_last_cmd_buf_index = 0;
+ term_last_cmd_buf_size = 0;
/* NOTE: readline_start can be called here */
term_readline_func(term_readline_opaque, term_cmd_buf);
break;