mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-11 07:50:14 +00:00
delete all characters from char to EOL
- more like GNU readline or emacs - can delete entire line with ctrl-A ctrl-K
This commit is contained in:
parent
967e7e2912
commit
7fd1b9065b
1 changed files with 1 additions and 1 deletions
|
|
@ -1076,7 +1076,7 @@ static int cle_editloop(FAR struct cle_s *priv)
|
|||
|
||||
case KEY_DELEOL: /* Delete to the end of the line */
|
||||
{
|
||||
priv->nchars = (priv->nchars > 0 ? priv->curpos + 1 : 0);
|
||||
priv->nchars = (priv->nchars > 0 ? priv->curpos : 0);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue