diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-11-06 08:06:07 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-11-06 08:06:31 -0700 |
commit | 491f9a378f5d5ea3b47a6d15b83bde0ededa5461 (patch) | |
tree | 316006e9572e6067023326b2a4b006c2b5f41a06 /src/kilo.c | |
parent | 9795cd502dd35fbeaae173eadc42db3a349e43b7 (diff) | |
download | teliva-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.c | 1 |
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); } |