Make ^c work in ddb(4).

Obtained from:	CheriBSD
MFC after:	2 weeks
Sponsored by:	DARPA, AFRL
This commit is contained in:
Edward Tomasz Napierala 2017-07-06 15:27:34 +00:00
parent eeb6101e04
commit 81e12dd187

View File

@ -195,6 +195,7 @@ db_inputchar(c)
db_delete(1, DEL_FWD); db_delete(1, DEL_FWD);
break; break;
case CTRL('u'): case CTRL('u'):
case CTRL('c'):
/* kill entire line: */ /* kill entire line: */
/* at first, delete to beginning of line */ /* at first, delete to beginning of line */
if (db_lc > db_lbuf_start) if (db_lc > db_lbuf_start)