Skip to content

Commit 7fd1b90

Browse files
starcatiopatacongo
authored andcommitted
delete all characters from char to EOL
- more like GNU readline or emacs - can delete entire line with ctrl-A ctrl-K
1 parent 967e7e2 commit 7fd1b90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/cle/cle.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,7 @@ static int cle_editloop(FAR struct cle_s *priv)
10761076

10771077
case KEY_DELEOL: /* Delete to the end of the line */
10781078
{
1079-
priv->nchars = (priv->nchars > 0 ? priv->curpos + 1 : 0);
1079+
priv->nchars = (priv->nchars > 0 ? priv->curpos : 0);
10801080
}
10811081
break;
10821082

0 commit comments

Comments
 (0)