From 3deb7c91056779d1f1b2be112e727bc9999ac21d Mon Sep 17 00:00:00 2001 From: Albert Cervin Date: Fri, 16 Dec 2022 16:53:18 +0100 Subject: Some text fixes --- src/text.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/text.h') diff --git a/src/text.h b/src/text.h index e6f681a..31fc9ca 100644 --- a/src/text.h +++ b/src/text.h @@ -15,8 +15,12 @@ void text_destroy(struct text *text); */ 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); +void text_append_at(struct text *text, uint32_t line, uint32_t col, + uint8_t *bytes, uint32_t nbytes, uint32_t *lines_added, + uint32_t *cols_added); + +void text_append(struct text *text, uint8_t *bytes, uint32_t nbytes, + uint32_t *lines_added, uint32_t *cols_added); void text_delete(struct text *text, uint32_t line, uint32_t col, uint32_t nchars); -- cgit v1.2.3