summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
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);
+