add line deleting functions

This commit is contained in:
2020-02-11 22:54:38 -08:00
parent 1e3258fcbd
commit f005791c69

5
main.c
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();