summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/main.c b/main.c
index 2e92a18..2e067a0 100644
--- a/main.c
+++ b/main.c
@@ -1,10 +1,6 @@
// @TODO:
-// - warn on:
-// - overwrite (from save as menu)
-// - file selector:
-// - tab to set search term to selected
// - tabs, split
-// - when closing tabs, warn on unsaved changes
+// - when closing tabs/window, warn on unsaved changes
// - Windows installation
#include "base.h"
no_warn_start
@@ -467,6 +463,11 @@ int main(int argc, char **argv) {
menu_render(ted, menu);
}
+ if (buffer_haserr(&ted->main_buffer)) {
+ ted_seterr_to_buferr(ted, &ted->main_buffer);
+ buffer_clearerr(&ted->main_buffer);
+ }
+
// check if there's a new error
if (ted_haserr(ted)) {
ted->error_time = time_get_seconds();