From 2bd3bf463ec253ef7c12187b3beafc22599e41be Mon Sep 17 00:00:00 2001 From: pommicket Date: Fri, 3 Mar 2023 18:12:55 -0500 Subject: fix session --- main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.c b/main.c index b16a867..8d15c1b 100644 --- a/main.c +++ b/main.c @@ -1,8 +1,5 @@ /* -@TODO -- what's wrong with session FUTURE FEATURES: -- option for separate colors for read/write highlights - styles ([color] sections) - for this, it would be nice to have #include in ted.cfg - better undo chaining (dechain on backspace?) @@ -545,11 +542,14 @@ int main(int argc, char **argv) { } else { ted_new_file(ted, filename); } - } else { - session_read(ted); } } + if (arr_len(starting_files) == 0) { + session_read(ted); + } + arr_free(starting_files); + -- cgit v1.2.3