From dfd008717a8e6ec764c44969e818597cad5aa102 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Wed, 15 Apr 2015 06:08:32 +0200 Subject: 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 --- src/calcurse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/calcurse.c b/src/calcurse.c index a29eae0..bed3b7a 100644 --- a/src/calcurse.c +++ b/src/calcurse.c @@ -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); } -- cgit v1.2.3-70-g09d2