mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-19 20:48:22 +00:00
system/readline: Fix espace sequence returning to user console
This commit fixes the issue: https://github.com/apache/nuttx-apps/issues/3680 Signed-off-by: Alan C. Assis <acassis@gmail.com> Assisted-by: Claude Code
This commit is contained in:
parent
baef9ebf6e
commit
4f5adbd346
1 changed files with 4 additions and 1 deletions
|
|
@ -1598,7 +1598,10 @@ ssize_t readline_common(FAR struct rl_common_s *vtbl, FAR char *buf,
|
|||
|
||||
buf[cursor] = (char)ch; nch++; cursor++;
|
||||
# ifdef CONFIG_READLINE_ECHO
|
||||
redraw_tail(vtbl, buf, nch, cursor);
|
||||
if (cursor < nch)
|
||||
{
|
||||
redraw_tail(vtbl, buf, nch, cursor);
|
||||
}
|
||||
# endif
|
||||
}
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue