diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-11-14 09:53:17 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-11-14 09:55:13 -0800 |
commit | 58d2d596ea9185cdd41ffa487cb0bb5956240720 (patch) | |
tree | 5ab843b412750e40f29569443fc229fc854eef87 /src/kilo.c | |
parent | a3ca7877da565b24df76cea817b63b045b7d8c52 (diff) | |
download | teliva-58d2d596ea9185cdd41ffa487cb0bb5956240720.tar.gz |
cleaner error handling
Diffstat (limited to 'src/kilo.c')
-rw-r--r-- | src/kilo.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/kilo.c b/src/kilo.c index d4aa962..6da85dd 100644 --- a/src/kilo.c +++ b/src/kilo.c @@ -1124,11 +1124,9 @@ void edit(lua_State* L, char* filename, const char* message) { } } -void resumeEdit(lua_State* L, char* filename, const char* message) { +void resumeEdit(lua_State* L, char* filename) { Quit = 0; - clearEditor(); - editorOpen(filename); - editorSetStatusMessage(message); + editorSetStatusMessage(Previous_error); while(!Quit) { editorRefreshScreen(editorMenu); editorProcessKeypress(L); |