add line deleting functions

This commit is contained in:
Kyle Isom 2020-02-11 22:54:38 -08:00
parent 688b44914d
commit 54af6f1c1c
1 changed files with 5 additions and 0 deletions

View File

@ -691,6 +691,11 @@ process_kcommand(int16_t c)
process_normal(DEL_KEY);
}
break;
case BACKSPACE:
while (editor->curx > 0) {
process_normal(BACKSPACE);
}
break;
case CTRL_KEY('\\'):
/* sometimes it's nice to dump core */
disable_termraw();