projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Stub of preset load method.
[bertos.git]
/
bertos
/
mware
/
readline.h
diff --git
a/bertos/mware/readline.h
b/bertos/mware/readline.h
index ab2af7c391c625bd2a74968858e26fc125f37a54..5f420f96a14e9e92eba25f3e9f9718dd61941209 100644
(file)
--- a/
bertos/mware/readline.h
+++ b/
bertos/mware/readline.h
@@
-43,6
+43,9
@@
* \version $Id$
*
* \author Giovanni Bajo <rasky@develer.com>
* \version $Id$
*
* \author Giovanni Bajo <rasky@develer.com>
+ *
+ * $WIZ$ module_name = "readline"
+ * $WIZ$ module_depends = "sprintf"
*/
*/
@@
-92,6
+95,7
@@
INLINE void rl_clear_history(struct RLContext *ctx)
{
memset(ctx->real_history, 0, sizeof(ctx->real_history));
ctx->history_pos = 0;
{
memset(ctx->real_history, 0, sizeof(ctx->real_history));
ctx->history_pos = 0;
+ ctx->line_pos = ctx->history_pos;
ctx->history = ctx->real_history;
}
ctx->history = ctx->real_history;
}