X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fmware%2Freadline.c;h=d7c5aa8c0745fb41cf1ec194a782654289209e49;hb=b5a70c67c42c8e6f62510c1cafa94cc59bca69a4;hp=4c3b3a81e5eb26fb266672a42f152a09b7dd9aca;hpb=791e167e053bdd9250d34a9a5ccae6ccde4d6679;p=bertos.git diff --git a/bertos/mware/readline.c b/bertos/mware/readline.c index 4c3b3a81..d7c5aa8c 100644 --- a/bertos/mware/readline.c +++ b/bertos/mware/readline.c @@ -42,7 +42,7 @@ * aim at fast performances (line editing does not require to be blazingly fast). * * \li The first character in the history is always \c \\0, and it is used as a guard. By 'wasting' it - * in this way, the code actually gets much simpler in that we remove many checks when moving + * in this way, the code actually gets much simpler in that we remove many checks when moving * backward (\c i>0 and similar). * * \li While editing, the current index points to the position of the buffer which contains the @@ -75,8 +75,6 @@ #include #include -#include - /// Enable compilation of the unit test code #define DEBUG_UNIT_TEST 0 @@ -401,9 +399,6 @@ const char* rl_readline(struct RLContext* ctx) if (c == '\r' || c == '\n') { - if (ctx->prompt) - rl_puts(ctx, ctx->prompt); - // Terminate line insert_chars(ctx, &ctx->line_pos, NULL, 0); rl_puts(ctx, "\r\n");