aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLars Henriksen <LarsHenriksen@get2net.dk>2017-11-13 19:41:20 +0100
committerLukas Fleischer <lfleischer@calcurse.org>2017-11-15 06:35:17 +0100
commitaca4e06c5fce9a98af4955f5a53d7ea3caf608a8 (patch)
tree35874fde3856331f1552c7469bf43a9d89c7b0da /src
parent1f411c4d64265168d0c3c115ca4423db7a6100f4 (diff)
downloadcalcurse-aca4e06c5fce9a98af4955f5a53d7ea3caf608a8.tar.gz
calcurse-aca4e06c5fce9a98af4955f5a53d7ea3caf608a8.zip
Fix help for nine actions
Seven actions were absent from display_help(). This meant that commands like ':help ^P' did not work. They now refer to general.txt, but are not all described there. For two actions, generic-copy/paste, the file name was misspelled. This solves Github issue #44. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src')
-rw-r--r--src/help.c22
1 files changed, 18 insertions, 4 deletions
diff --git a/src/help.c b/src/help.c
index 62b6476..1d6c366 100644
--- a/src/help.c
+++ b/src/help.c
@@ -114,18 +114,24 @@ int display_help(const char *topic)
}
if (!io_file_exists(path)) {
- if (!strcmp(topic, "generic-credits"))
- topic = "credits";
+ if (!strcmp(topic, "generic-cancel"))
+ topic = "general";
+ else if (!strcmp(topic, "generic-select"))
+ topic = "general";
+ else if (!strcmp(topic, "generic-credits"))
+ topic = "intro";
else if (!strcmp(topic, "generic-help"))
topic = "intro";
+ else if (!strcmp(topic, "generic-quit"))
+ topic = "general";
else if (!strcmp(topic, "generic-save"))
topic = "save";
else if (!strcmp(topic, "generic-reload"))
topic = "reload";
else if (!strcmp(topic, "generic-copy"))
- topic = "copy_paste";
+ topic = "copy-paste";
else if (!strcmp(topic, "generic-paste"))
- topic = "copy_paste";
+ topic = "copy-paste";
else if (!strcmp(topic, "generic-change-view"))
topic = "tab";
else if (!strcmp(topic, "generic-import"))
@@ -138,6 +144,8 @@ int display_help(const char *topic)
topic = "other";
else if (!strcmp(topic, "generic-config-menu"))
topic = "config";
+ else if (!strcmp(topic, "generic-redraw"))
+ topic = "general";
else if (!strcmp(topic, "generic-add-appt"))
topic = "general";
else if (!strcmp(topic, "generic-add-todo"))
@@ -158,8 +166,14 @@ int display_help(const char *topic)
topic = "general";
else if (!strcmp(topic, "generic-next-year"))
topic = "general";
+ else if (!strcmp(topic, "generic-scroll-down"))
+ topic = "general";
+ else if (!strcmp(topic, "generic-scroll-up"))
+ topic = "general";
else if (!strcmp(topic, "generic-goto-today"))
topic = "general";
+ else if (!strcmp(topic, "generic-command"))
+ topic = "general";
else if (!strcmp(topic, "move-right"))
topic = "displacement";
else if (!strcmp(topic, "move-left"))