Clean up the code. Manage the reconnection. Use the lwip error, insted
[bertos.git] / bertos / mware / readline.h
index a106a4cefb5bc02166f9d45fa011ed039b9e40cb..8a104759df34782376facb4d381dec821f0927d0 100644 (file)
@@ -40,7 +40,6 @@
  * \li Basic support for ANSI escape sequences for input of special codes.
  * \li Support for command name completion (through a hook).
  *
- * \version $Id$
  *
  * \author Giovanni Bajo <rasky@develer.com>
  *
@@ -95,6 +94,7 @@ INLINE void rl_clear_history(struct RLContext *ctx)
 {
        memset(ctx->real_history, 0, sizeof(ctx->real_history));
        ctx->history_pos = 0;
+       ctx->line_pos = ctx->history_pos;
        ctx->history = ctx->real_history;
 }