summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2015-04-15 06:08:32 +0200
committerLukas Fleischer <lfleischer@calcurse.org>2015-04-15 06:08:32 +0200
commitdfd008717a8e6ec764c44969e818597cad5aa102 (patch)
tree024ee568861c4716384e0de543ca02fb5a4e04d4
parentba81d903b783aaa9c6707d24bb357ab09a8937c5 (diff)
downloadcalcurse-dfd008717a8e6ec764c44969e818597cad5aa102.tar.gz
calcurse-dfd008717a8e6ec764c44969e818597cad5aa102.zip
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>
-rw-r--r--src/calcurse.c3
1 files changed, 2 insertions, 1 deletions
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);
}