aboutsummaryrefslogtreecommitdiff
path: root/src/api/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/buffer.c')
-rw-r--r--src/api/buffer.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/api/buffer.c b/src/api/buffer.c
index 309d5b5b27..bdd27fe347 100644
--- a/src/api/buffer.c
+++ b/src/api/buffer.c
@@ -67,6 +67,12 @@ void buffer_set_line(Buffer buffer, int64_t index, String line, Error *err)
buffer_set_slice(buffer, index, index, true, true, array, err);
}
+void buffer_del_line(Buffer buffer, int64_t index, Error *err)
+{
+ StringArray array = {.size = 0};
+ buffer_set_slice(buffer, index, index, true, true, array, err);
+}
+
StringArray buffer_get_slice(Buffer buffer,
int64_t start,
int64_t end,