aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/help.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/help.c')
-rw-r--r--src/help.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/help.c b/src/help.c
index c64538e..b7b5fd0 100644
--- a/src/help.c
+++ b/src/help.c
@@ -282,6 +282,11 @@ teco_state_help_done(teco_machine_main_t *ctx, teco_string_t str, GError **error
"Help topic must not contain null-byte");
return NULL;
}
+
+ /*
+ * FIXME: Perhaps ?$ could toggle through all topics with the
+ * same name.
+ */
const gchar *topic_name = str.data ? : "";
teco_help_topic_t *topic = teco_help_find(topic_name);
if (!topic) {