commit 7a95cfddef07d02d4e4473abf1e26ab5058135b2
parent ba2086f9636486bee191fd866652ca19fcb34223
Author: Claudio Alessi <smoppy@gmail.com>
Date: Mon, 15 Dec 2025 23:06:34 +0100
Register the backend cleanup routine on exit.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/edo.c b/edo.c
@@ -505,6 +505,7 @@ main(int argc, char *argv[]) {
if(argc == 2) fn = argv[1];
ui = &ui_tui; /* the one and only... */
+ atexit(ui->exit);
ui->init();
Buffer *b = buffer_create(fn);
View *v = view_create(b);