aboutsummaryrefslogtreecommitdiffstats
path: root/src/custom.c
diff options
context:
space:
mode:
authorMorgan Seltzer <MorganSeltzer000@gmail.com>2021-06-28 16:49:00 -0400
committerLukas Fleischer <lfleischer@calcurse.org>2022-04-03 12:24:55 -0400
commita1d2faab2635db144e0dfc0654be54bff6d159c0 (patch)
tree3406c92d7d6131b06b6437185f6e0fc09c57a1d1 /src/custom.c
parentec38714bbc81c765990bcab2f6c3772e54eb2c75 (diff)
downloadcalcurse-a1d2faab2635db144e0dfc0654be54bff6d159c0.tar.gz
calcurse-a1d2faab2635db144e0dfc0654be54bff6d159c0.zip
Layout change recognizes changed appointment space
Before a layout change did not update the maximum number of appointments visible, until the config menu was exited. Now the maximum number of appointments are visible immediately after the layout screen is exited. Addresses GitHub issue #381 Signed-off-by: Morgan Seltzer <MorganSeltzer000@gmail.com> Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src/custom.c')
-rw-r--r--src/custom.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/custom.c b/src/custom.c
index e81a9ca..13570c6 100644
--- a/src/custom.c
+++ b/src/custom.c
@@ -1242,7 +1242,7 @@ void custom_config_main(void)
old_layout = wins_layout();
custom_layout_config();
if (wins_layout() != old_layout)
- wins_reset();
+ wins_resize();
break;
case 'G':
case 'g':
@@ -1268,7 +1268,11 @@ void custom_config_main(void)
resize = 0;
wins_reset();
}
-
+
+ /* needed to update app list */
+ day_do_storage(0);
+
+ /* wins_update(FLAG_ALL), but with custom bindings */
wins_set_bindings(bindings, ARRAY_SIZE(bindings));
wins_update_border(FLAG_ALL);
wins_update_panels(FLAG_ALL);