diff options
| author | Albert Cervin <albert@acervin.com> | 2022-12-15 18:06:59 +0100 |
|---|---|---|
| committer | Albert Cervin <albert@acervin.com> | 2022-12-15 18:06:59 +0100 |
| commit | d931b14863838a8dceed8cd95c71a75a271cca6b (patch) | |
| tree | 64e1afa0b4849628f47f29d5cdb192fd0db63240 /src/text.h | |
| parent | a73225c9b45e110d315a3fc587a82040ce8c9a13 (diff) | |
| download | dged-d931b14863838a8dceed8cd95c71a75a271cca6b.tar.gz dged-d931b14863838a8dceed8cd95c71a75a271cca6b.tar.xz dged-d931b14863838a8dceed8cd95c71a75a271cca6b.zip | |
Make minibuffer use an actual buffer
Also fix some issues with inserting multibyte chars.
Diffstat (limited to 'src/text.h')
| -rw-r--r-- | src/text.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -10,6 +10,11 @@ struct render_cmd; struct text *text_create(uint32_t initial_capacity); void text_destroy(struct text *text); +/** + * Clear the text without reclaiming memory + */ +void text_clear(struct text *text); + void text_append(struct text *text, uint32_t line, uint32_t col, uint8_t *bytes, uint32_t nbytes, uint32_t *lines_added, uint32_t *cols_added); |
