summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-03-03 18:12:55 -0500
committerpommicket <pommicket@gmail.com>2023-03-03 18:13:27 -0500
commit2bd3bf463ec253ef7c12187b3beafc22599e41be (patch)
tree4b5fddb37fc9545638dbcfd069ff5ec17bba2aca /main.c
parentfb342182983ffdb0aae0497f5cbcb71b0b291023 (diff)
fix session
Diffstat (limited to 'main.c')
-rw-r--r--main.c10
1 files 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);
+