aboutsummaryrefslogtreecommitdiff
path: root/src/api/buffer.h
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-05-10 22:31:18 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-05-13 14:11:26 -0300
commit8eb67404f00c789fc5e8ef723105be2b0aff85cd (patch)
tree154d948564ba3607efc27aa98877c8775f05ebb4 /src/api/buffer.h
parent4dc34bc0e052320feebdc3a9aed0df1d3e8af181 (diff)
downloadrneovim-8eb67404f00c789fc5e8ef723105be2b0aff85cd.tar.gz
rneovim-8eb67404f00c789fc5e8ef723105be2b0aff85cd.tar.bz2
rneovim-8eb67404f00c789fc5e8ef723105be2b0aff85cd.zip
API: Refactor buffer_{get,set}_line
They are now implemented on top of the buffer_{get,set}_slice functions
Diffstat (limited to 'src/api/buffer.h')
-rw-r--r--src/api/buffer.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/api/buffer.h b/src/api/buffer.h
index 49379e3bc9..17ba9ead94 100644
--- a/src/api/buffer.h
+++ b/src/api/buffer.h
@@ -25,10 +25,9 @@ String buffer_get_line(Buffer buffer, int64_t index, Error *err);
///
/// @param buffer The buffer handle
/// @param index The line index
-/// @param line The new line. This can can be a String(replacement) or
-/// Nil(delete). Anything else is an error.
+/// @param line The new line.
/// @param[out] err Details of an error that may have occurred
-void buffer_set_line(Buffer buffer, int64_t index, Object line, Error *err);
+void buffer_set_line(Buffer buffer, int64_t index, String line, Error *err);
/// Retrieves a line range from the buffer
///