Show an error message on missing documentation

Show a warning when the user presses the generic-help binding and the
main help document is not available.

Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
Lukas Fleischer 2015-04-15 06:08:32 +02:00
parent ba81d903b7
commit dfd008717a

View File

@ -245,7 +245,8 @@ static inline void key_view_note(void)
static inline void key_generic_help(void)
{
display_help(NULL);
if (!display_help(NULL))
warnbox(_("Unable to find documentation."));
wins_update(FLAG_ALL);
}