diff options
author | Lukas Fleischer <lfleischer@calcurse.org> | 2015-04-15 06:08:32 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2015-04-15 06:08:32 +0200 |
commit | dfd008717a8e6ec764c44969e818597cad5aa102 (patch) | |
tree | 024ee568861c4716384e0de543ca02fb5a4e04d4 /src | |
parent | ba81d903b783aaa9c6707d24bb357ab09a8937c5 (diff) | |
download | 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>
Diffstat (limited to 'src')
-rw-r--r-- | src/calcurse.c | 3 |
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); } |