diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-12-22 18:08:14 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-12-22 19:33:48 +0300 |
commit | c293f725e55661ae690b52d5e8339e48b07a6a85 (patch) | |
tree | ca4a3162950ec4cdccccd09b6c38175acacbfec6 /src/doc.c | |
parent | c174f9be70855e89f606547cfa5471942d238038 (diff) | |
download | sciteco-c293f725e55661ae690b52d5e8339e48b07a6a85.tar.gz |
fixed crashes while setting special Q-Registers with EU (string-building characters)
* The teco_qreg_vtable_t::get_string() method should support returning the
length optionally (may be NULL).
This already worked with teco_doc_get_string(), even though it wasn't documented,
and therefore didn't cause problems with regular Q-Registers.
Diffstat (limited to 'src/doc.c')
-rw-r--r-- | src/doc.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -176,7 +176,8 @@ teco_doc_undo_set_string(teco_doc_t *ctx) * @param str Pointer to a variable to hold the return string. * It can be NULL if you are interested only in the string's length. * Strings must be freed via g_free(). - * @param len Where to store the string's length (mandatory). + * @param len Where to store the string's length or NULL + * if that information is not necessary. * @param codepage Where to store the document's codepage or NULL * if that information is not necessary. * |