From 9e8d685a1962bd319ade3ff77f52c6e16fd39656 Mon Sep 17 00:00:00 2001 From: EN <109923311+CardboardDog@users.noreply.github.com> Date: Sat, 4 Jan 2025 15:36:05 -0500 Subject: [PATCH] forward delete this is fixes issue #9 (Forward delete key goes backward in Kilo.) --- kilo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kilo.c b/kilo.c index 0d8aef4e..ed6aecf5 100644 --- a/kilo.c +++ b/kilo.c @@ -1217,7 +1217,10 @@ void editorProcessKeypress(int fd) { break; case BACKSPACE: /* Backspace */ case CTRL_H: /* Ctrl-h */ + editorDelChar(); + break; case DEL_KEY: + editorMoveCursor(ARROW_RIGHT); editorDelChar(); break; case PAGE_UP: