diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2013-07-17 01:03:05 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2013-07-17 14:03:53 +0200 |
commit | 08f5064ef7b204d3c564f76b1c2e78d83d586a1a (patch) | |
tree | 5a5ab4e671aaba1694f70e40bceec7e9830c5831 /src | |
parent | 2c25d99ad036c9ad473167b4f2f8e7dea9cd946e (diff) | |
download | calcurse-08f5064ef7b204d3c564f76b1c2e78d83d586a1a.tar.gz calcurse-08f5064ef7b204d3c564f76b1c2e78d83d586a1a.zip |
Add introduction to the new online help system
This adds a very basic explanation of the new help command that can be
displayed using ":help intro". This introduction is also added as
default page so that users can simply type ":help" instead.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/calcurse.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/calcurse.c b/src/calcurse.c index d20e9d0..859bc1e 100644 --- a/src/calcurse.c +++ b/src/calcurse.c @@ -503,6 +503,9 @@ static inline void key_generic_cmd(void) char *topic = strtok(NULL, " "); char path[BUFSIZ]; + if (!topic) + topic = "intro"; + snprintf(path, BUFSIZ, DOCDIR "/%s.txt", topic); if (io_file_exist(path)) { wins_launch_external(path, conf.pager); |