aboutsummaryrefslogtreecommitdiff
path: root/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'text.c')
-rw-r--r--text.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/text.c b/text.c
index 25ce1ed..c41fe3e 100644
--- a/text.c
+++ b/text.c
@@ -897,6 +897,10 @@ bool text_iterator_char_prev(Iterator *it, char *c) {
return false;
}
+bool text_byte_get(Text *ed, size_t pos, char *buf) {
+ return text_bytes_get(ed, pos, 1, buf);
+}
+
size_t text_bytes_get(Text *ed, size_t pos, size_t len, char *buf) {
if (!buf)
return 0;