diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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(); |