diff options
author | pommicket <pommicket@gmail.com> | 2023-03-03 18:12:55 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-03-03 18:13:27 -0500 |
commit | 2bd3bf463ec253ef7c12187b3beafc22599e41be (patch) | |
tree | 4b5fddb37fc9545638dbcfd069ff5ec17bba2aca /main.c | |
parent | fb342182983ffdb0aae0497f5cbcb71b0b291023 (diff) |
fix session
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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); + |