summaryrefslogtreecommitdiffstats
path: root/src/calcurse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/calcurse.c')
-rw-r--r--src/calcurse.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/calcurse.c b/src/calcurse.c
index a6d54fd..d470661 100644
--- a/src/calcurse.c
+++ b/src/calcurse.c
@@ -48,18 +48,13 @@ int count, reg;
*/
static void do_storage(int day_changed)
{
+ /* * Save the selected item before rebuilding the day vector. */
struct day_item *day = ui_day_selitem();
union aptev_ptr item;
-
- if (day) {
- /*
- * day_process_storage() rebuilds the vector of day items, so
- * we need to save the reference to the actual item here.
- */
+ if (day)
item = day->item;
- }
- day_process_storage(ui_calendar_get_slctd_day(), day_changed);
+ day_store_items(get_slctd_day(), 1);
ui_day_load_items();
if (day_changed)