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:
parent
ba81d903b7
commit
dfd008717a
@ -245,7 +245,8 @@ static inline void key_view_note(void)
|
|||||||
|
|
||||||
static inline void key_generic_help(void)
|
static inline void key_generic_help(void)
|
||||||
{
|
{
|
||||||
display_help(NULL);
|
if (!display_help(NULL))
|
||||||
|
warnbox(_("Unable to find documentation."));
|
||||||
wins_update(FLAG_ALL);
|
wins_update(FLAG_ALL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user