From 4fb5eb4ce390e48ab79eb73304abb92e51185e4a Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Thu, 6 Jun 2019 22:12:05 -0400 Subject: Disable view item/note bindings for dummy items Signed-off-by: Lukas Fleischer --- src/calcurse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calcurse.c b/src/calcurse.c index 389afa8..7eb6b12 100644 --- a/src/calcurse.c +++ b/src/calcurse.c @@ -105,7 +105,7 @@ static inline void key_generic_goto_today(void) static inline void key_view_item(void) { - if (wins_slctd() == APP) + if (wins_slctd() == APP && !event_dummy(ui_day_get_sel())) ui_day_popup_item(); else if (wins_slctd() == TOD) ui_todo_popup_item(); @@ -252,7 +252,7 @@ static inline void key_edit_note(void) static inline void key_view_note(void) { - if (wins_slctd() == APP) + if (wins_slctd() == APP && !event_dummy(ui_day_get_sel())) ui_day_view_note(); else if (wins_slctd() == TOD) ui_todo_view_note(); -- cgit v1.2.3-70-g09d2