Add missing initialization.
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 13 Nov 2009 18:18:11 +0000 (18:18 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 13 Nov 2009 18:18:11 +0000 (18:18 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3112 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/mware/readline.h

index a106a4cefb5bc02166f9d45fa011ed039b9e40cb..5f420f96a14e9e92eba25f3e9f9718dd61941209 100644 (file)
@@ -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;
 }