X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=bertos%2Fmware%2Freadline.h;h=5f420f96a14e9e92eba25f3e9f9718dd61941209;hb=e72d867e54dbd5b37fa15fff8356c9327d02484e;hp=a106a4cefb5bc02166f9d45fa011ed039b9e40cb;hpb=5d5cb6250eacac50a8a587296e109c787764f5b8;p=bertos.git diff --git a/bertos/mware/readline.h b/bertos/mware/readline.h index a106a4ce..5f420f96 100644 --- a/bertos/mware/readline.h +++ b/bertos/mware/readline.h @@ -95,6 +95,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; }