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:
yar 2002-02-11 14:14:42 +00:00
parent 662127e26f
commit bedc40ea68

View File

@ -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)