diff options
author | Lukas Fleischer <lfleischer@calcurse.org> | 2015-04-15 06:12:30 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2015-04-15 06:12:30 +0200 |
commit | 794e9509426ef4671914e29cb2fd877db3a61445 (patch) | |
tree | c5b294b7c3944640e563623e26e1bf7607df0755 /src | |
parent | dfd008717a8e6ec764c44969e818597cad5aa102 (diff) | |
download | calcurse-794e9509426ef4671914e29cb2fd877db3a61445.zip |
Make the generic-credits key binding work again
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/calcurse.c | 8 |
1 files changed, 8 insertions, 0 deletions
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); |