mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Teach ddb(4) to delete to the beginning of its command line on ^U.
PR: kern/28976 Submitted by: Nickolai Zeldovich <kolya@orbit.zepa.net>
This commit is contained in:
parent
9d6e4fa0a5
commit
732681a789
1 changed files with 5 additions and 0 deletions
|
|
@ -189,6 +189,11 @@ db_inputchar(c)
|
|||
if (db_lc > db_lbuf_start)
|
||||
db_delete(1, DEL_BWD);
|
||||
break;
|
||||
case CTRL('u'):
|
||||
/* delete to beginning of line */
|
||||
if (db_lc > db_lbuf_start)
|
||||
db_delete(db_lc - db_lbuf_start, DEL_BWD);
|
||||
break;
|
||||
case CTRL('d'):
|
||||
/* erase next character */
|
||||
if (db_lc < db_le)
|
||||
|
|
|
|||
Loading…
Reference in a new issue