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
662127e26f
commit
bedc40ea68
@ -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