aboutsummaryrefslogtreecommitdiff
path: root/src/api/buffer.h
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-05-10 22:37:36 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-05-13 14:11:26 -0300
commit607d4acfb262562b78145cbe3c2240fc7b4f49da (patch)
tree0a7b8e8fb363a5a5e7e1d59c61c181fd6d75b6b0 /src/api/buffer.h
parent8eb67404f00c789fc5e8ef723105be2b0aff85cd (diff)
downloadrneovim-607d4acfb262562b78145cbe3c2240fc7b4f49da.tar.gz
rneovim-607d4acfb262562b78145cbe3c2240fc7b4f49da.tar.bz2
rneovim-607d4acfb262562b78145cbe3c2240fc7b4f49da.zip
API: Implement functions for deleting lines
Diffstat (limited to 'src/api/buffer.h')
-rw-r--r--src/api/buffer.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/api/buffer.h b/src/api/buffer.h
index 17ba9ead94..516df04ae4 100644
--- a/src/api/buffer.h
+++ b/src/api/buffer.h
@@ -29,6 +29,13 @@ String buffer_get_line(Buffer buffer, int64_t index, Error *err);
/// @param[out] err Details of an error that may have occurred
void buffer_set_line(Buffer buffer, int64_t index, String line, Error *err);
+/// Deletes a buffer line
+///
+/// @param buffer The buffer handle
+/// @param index The line index
+/// @param[out] err Details of an error that may have occurred
+void buffer_del_line(Buffer buffer, int64_t index, Error *err);
+
/// Retrieves a line range from the buffer
///
/// @param buffer The buffer handle