about summary refs log tree commit diff stats
path: root/src/kilo.c
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-11-06 08:06:07 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-11-06 08:06:31 -0700
commit491f9a378f5d5ea3b47a6d15b83bde0ededa5461 (patch)
tree316006e9572e6067023326b2a4b006c2b5f41a06 /src/kilo.c
parent9795cd502dd35fbeaae173eadc42db3a349e43b7 (diff)
downloadteliva-491f9a378f5d5ea3b47a6d15b83bde0ededa5461.tar.gz
clean up when leaving editor
kilo.c is still calling exit() in several places that we'll need to
gradually clean up.
Diffstat (limited to 'src/kilo.c')
-rw-r--r--src/kilo.c1
1 files changed, 1 insertions, 0 deletions
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);
 }