about summary refs log tree commit diff stats
path: root/src/lua.c
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-11-13 21:33:12 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-11-13 21:33:12 -0800
commita7139a6b1462458487c8a416f521ceaf94aa604f (patch)
treee260996d90544caff0f0a28a416713c9df2f801d /src/lua.c
parentda76ec44f1211ad49ab0700bda647bfe523d5093 (diff)
downloadteliva-a7139a6b1462458487c8a416f521ceaf94aa604f.tar.gz
clean up after the editor
Even though we don't need to leave ncurses mode, there's still a process
boundary to clean up before.
Diffstat (limited to 'src/lua.c')
-rw-r--r--src/lua.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lua.c b/src/lua.c
index d7939bf..e062746 100644
--- a/src/lua.c
+++ b/src/lua.c
@@ -414,6 +414,7 @@ void switch_to_editor (lua_State *L, const char *message) {
     edit(L, Script_name, message);
   else
     browseImage(L);
+  cleanup_curses();
   execv(Argv[0], Argv);
   /* never returns */
 }