diff options
author | pommicket <pommicket@gmail.com> | 2022-03-26 23:07:04 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-03-26 23:07:04 -0400 |
commit | d1af07d06f044718fa63af0e6db527275e1f6813 (patch) | |
tree | 5efb5b747755d9c0678d8479e573448994542a93 | |
parent | d334b04c4d7de2e200a1a37fbf1ecc2758280e94 (diff) |
fix session problems
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | main.c | 11 |
2 files changed, 7 insertions, 6 deletions
@@ -144,7 +144,7 @@ Then, open windows\_installer\\ted\\ted.sln, and build. <tr><td>0.8</td> <td>Autocomplete</td> <td>2021 Mar 4</td></tr> <tr><td>1.0</td> <td>Bugfixes, small additional features, installers</td> <td>2021 Apr 20</td></tr> <tr><td>1.0r1</td> <td>Windows-specific bugfixes, update to new version of PCRE2</td> <td>2022 Jan 1</td></tr> -<tr><td>1.0r2</td> <td>Various ctrl+w (:tab-close) bugfixes</td> <td>2022 Mar 26</td></tr> +<tr><td>1.0r2</td> <td>Various bugfixes involving closing tabs and windows</td> <td>2022 Mar 26</td></tr> </table> ## License @@ -947,7 +947,12 @@ int main(int argc, char **argv) { #endif } - + + if (ted->find) + find_close(ted); + build_stop(ted); + if (ted->menu) + menu_close(ted); session_write(ted); arr_foreach_ptr(ted->shell_history, char *, cmd) { @@ -964,11 +969,7 @@ int main(int argc, char **argv) { SDL_GL_DeleteContext(glctx); SDL_DestroyWindow(window); SDL_Quit(); - build_stop(ted); - if (ted->menu) - menu_close(ted); // free any memory used by the current menu if (log) fclose(log); - find_close(ted); tag_selector_close(ted); for (u16 i = 0; i < TED_MAX_BUFFERS; ++i) if (ted->buffers_used[i]) |