Skip to content

Commit

Permalink
forward delete
Browse files Browse the repository at this point in the history
this is fixes issue antirez#9 (Forward delete key goes backward in Kilo.)
  • Loading branch information
CardboardDog committed Jan 4, 2025
1 parent 323d93b commit 9e8d685
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kilo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9e8d685

Please sign in to comment.