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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=90528
@ -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 New Issue
Block a user