From 491f9a378f5d5ea3b47a6d15b83bde0ededa5461 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 6 Nov 2021 08:06:07 -0700 Subject: clean up when leaving editor kilo.c is still calling exit() in several places that we'll need to gradually clean up. --- src/kilo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/kilo.c b/src/kilo.c index 174bdc3..14d7bef 100644 --- a/src/kilo.c +++ b/src/kilo.c @@ -1268,4 +1268,5 @@ void edit(char* filename) { editorRefreshScreen(); editorProcessKeypress(STDIN_FILENO); } + disableRawMode(STDIN_FILENO); } -- cgit 1.4.1-2-gfad0