diff --git a/libs/esl/fs_cli.c b/libs/esl/fs_cli.c index 419aa9b50a..bbdf9a1426 100644 --- a/libs/esl/fs_cli.c +++ b/libs/esl/fs_cli.c @@ -214,7 +214,7 @@ static unsigned char console_eofkey(EditLine *el, int ch) return CC_EOF; } else { if (line->cursor != line->lastchar) { - line->cursor++; + el_cursor(el, 1); el_deletestr(el, 1); } return CC_REDISPLAY;