From 0504875219bdc4c017938bdccf564d9a452afcc6 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Mon, 25 Jun 2012 22:30:20 +0200 Subject: Simplify apoint_switch_notify() Pull out code from apoint_switch_notify() -- especially the fallback routine that calls recur_apoint_switch_notify() if the currently selected item is a recurrent item -- and move it to a wrapper function day_item_switch_notify(). Signed-off-by: Lukas Fleischer --- src/calcurse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/calcurse.c') diff --git a/src/calcurse.c b/src/calcurse.c index 09baab5..8a796ff 100644 --- a/src/calcurse.c +++ b/src/calcurse.c @@ -311,7 +311,7 @@ int main(int argc, char **argv) case KEY_FLAG_ITEM: if (wins_slctd() == APP && apoint_hilt() != 0) { - apoint_switch_notify(); + day_item_switch_notify(); inday = do_storage(0); wins_update(FLAG_APP); } else if (wins_slctd() == TOD && todo_hilt() != 0) { -- cgit v1.2.3-54-g00ecf