aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/help.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/help.c')
-rw-r--r--src/help.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/help.c b/src/help.c
index e06bda4..0f88646 100644
--- a/src/help.c
+++ b/src/help.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2012-2023 Robin Haberkorn
+ * Copyright (C) 2012-2024 Robin Haberkorn
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -94,7 +94,7 @@ teco_help_init(GError **error)
teco_qreg_t *lib_reg = teco_qreg_table_find(&teco_qreg_table_globals, "$SCITECOPATH", 12);
g_assert(lib_reg != NULL);
g_auto(teco_string_t) lib_path = {NULL, 0};
- if (!lib_reg->vtable->get_string(lib_reg, &lib_path.data, &lib_path.len, error))
+ if (!lib_reg->vtable->get_string(lib_reg, &lib_path.data, &lib_path.len, NULL, error))
return FALSE;
/*
* FIXME: lib_path may contain null-bytes.
@@ -235,8 +235,7 @@ teco_help_auto_complete(const gchar *topic_name, teco_string_t *insert)
topic_name ? strlen(topic_name) : 0, 0, insert);
}
-#ifndef NDEBUG
-static void __attribute__((destructor))
+static void TECO_DEBUG_CLEANUP
teco_help_cleanup(void)
{
if (!teco_help_chunk)
@@ -251,7 +250,6 @@ teco_help_cleanup(void)
teco_help_topic_free((teco_help_topic_t *)cur);
}
}
-#endif
/*
* Command states
@@ -316,7 +314,7 @@ teco_state_help_done(teco_machine_main_t *ctx, const teco_string_t *str, GError
}
/* in cmdline.c */
-gboolean teco_state_help_process_edit_cmd(teco_machine_main_t *ctx, teco_machine_t *parent_ctx, gchar chr, GError **error);
+gboolean teco_state_help_process_edit_cmd(teco_machine_main_t *ctx, teco_machine_t *parent_ctx, gunichar chr, GError **error);
/*$ "?" help
* ?[topic]$ -- Get help for topic
@@ -347,7 +345,7 @@ gboolean teco_state_help_process_edit_cmd(teco_machine_main_t *ctx, teco_machine
* .EE
* In other words it must be a \*(ST comment followed
* by an asterisk sign, followed by the first topic which
- * is a buffer position, followed by a colon and the topic
+ * is a buffer position in bytes, followed by a colon and the topic
* string.
* The topic string is terminated by the end of the line.
* The end of the header is marked by a single \(lq*!\(rq.
@@ -373,7 +371,7 @@ gboolean teco_state_help_process_edit_cmd(teco_machine_main_t *ctx, teco_machine
* \fIgrosciteco\fP formatter and the \fIsciteco.tmac\fP
* GNU troff macros.
* When using womanpages generated by \fIgrosciteco\fP,
- * help topics can be defined using the \fBTECO_TOPIC\fP
+ * help topics can be defined using the \fBSCITECO_TOPIC\fP
* Troff macro.
* This flexible system allows \*(ST to access internal
* and third-party help files written in plain-text or