diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-10 22:31:18 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-13 14:11:26 -0300 |
commit | 8eb67404f00c789fc5e8ef723105be2b0aff85cd (patch) | |
tree | 154d948564ba3607efc27aa98877c8775f05ebb4 /src/api/buffer.h | |
parent | 4dc34bc0e052320feebdc3a9aed0df1d3e8af181 (diff) | |
download | rneovim-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.h | 5 |
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 /// |