troglobit / editline

A small replacement for GNU readline() for UNIX
https://troglobit.com/projects/editline/
Other
282 stars 58 forks source link

`Ctrl-U` should delete the line from the cursor position, not the entire line #71

Open 9999years opened 2 months ago

9999years commented 2 months ago

In Fish and Bash, when I press Ctrl-U, it deletes the input line from the cursor position, not the entire line. If | is my cursor:

> a b c|
> a b| c
Press Ctrl-U
> | c

But editline deletes the entire line:

> a b c|
> a b| c
Press Ctrl-U
> |