aboutsummaryrefslogtreecommitdiffstats
path: root/src/vars.c
diff options
context:
space:
mode:
authorLars Henriksen <LarsHenriksen@get2net.dk>2019-05-14 07:10:33 +0200
committerLukas Fleischer <lfleischer@calcurse.org>2019-05-26 10:04:28 -0400
commitd15f1e9242f77d9021af8c4b45eec96eb82a8eb6 (patch)
tree82576fecf3b52d08cc6b8d99925ce017c4e1615d /src/vars.c
parent4db9677119f412fd38440e5591afbfb631a11b3d (diff)
downloadcalcurse-d15f1e9242f77d9021af8c4b45eec96eb82a8eb6.tar.gz
calcurse-d15f1e9242f77d9021af8c4b45eec96eb82a8eb6.zip
Automate the calculation of number of days to load
Instead of having the user tell how many days to load, calcurse can calculate an overestimation from the running configuration (panel size, appearance of headers and separators etc.) The configuration variable conf.multiple_days is turned into a Boolean that switches the feature on and off. Signed-off-by: Lars Henriksen <LarsHenriksen@get2net.dk> Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src/vars.c')
-rw-r--r--src/vars.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vars.c b/src/vars.c
index b81ab5f..ce6caf8 100644
--- a/src/vars.c
+++ b/src/vars.c
@@ -122,7 +122,7 @@ void vars_init(void)
/* Variables for user configuration */
conf.cal_view = CAL_MONTH_VIEW;
conf.todo_view = TODO_HIDE_COMPLETED_VIEW;
- conf.multiple_days = 7;
+ conf.multiple_days = 1;
conf.header_line = 1;
conf.event_separator = 1;
conf.day_separator = 1;