diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-28 16:22:49 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-28 16:22:49 -0500 |
commit | 238f3ecc526600d5c18fead7820469719027b07c (patch) | |
tree | d84cd6606be4a81e32f8f0634aeb924b0457e5f8 /main.c | |
parent | 5b90057859cd38b284573460460ab27bd108aa0e (diff) |
got file selector to behave better
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(); |