From 794e9509426ef4671914e29cb2fd877db3a61445 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Wed, 15 Apr 2015 06:12:30 +0200 Subject: Make the generic-credits key binding work again Signed-off-by: Lukas Fleischer --- src/calcurse.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/calcurse.c b/src/calcurse.c index bed3b7a..f2d2741 100644 --- a/src/calcurse.c +++ b/src/calcurse.c @@ -243,6 +243,13 @@ static inline void key_view_note(void) wins_update(FLAG_ALL); } +static inline void key_generic_credits(void) +{ + if (!display_help("credits")) + warnbox(_("Unable to find documentation.")); + wins_update(FLAG_ALL); +} + static inline void key_generic_help(void) { if (!display_help(NULL)) @@ -658,6 +665,7 @@ int main(int argc, char **argv) HANDLE_KEY(KEY_LOWER_PRIORITY, key_lower_priority); HANDLE_KEY(KEY_EDIT_NOTE, key_edit_note); HANDLE_KEY(KEY_VIEW_NOTE, key_view_note); + HANDLE_KEY(KEY_GENERIC_CREDITS, key_generic_credits); HANDLE_KEY(KEY_GENERIC_HELP, key_generic_help); HANDLE_KEY(KEY_GENERIC_SAVE, key_generic_save); HANDLE_KEY(KEY_GENERIC_RELOAD, key_generic_reload); -- cgit v1.2.3-70-g09d2