diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-08 16:22:08 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-13 09:33:40 -0300 |
commit | 9f25a4153ca17fb5bbba47688817fef984c64b14 (patch) | |
tree | 5b3fd70ae6520f7b4e93806b782a4f5b7308cb33 /src/api/buffer.h | |
parent | 7b04674174c00b85fb75579bbc49524f7ba74afa (diff) | |
download | rneovim-9f25a4153ca17fb5bbba47688817fef984c64b14.tar.gz rneovim-9f25a4153ca17fb5bbba47688817fef984c64b14.tar.bz2 rneovim-9f25a4153ca17fb5bbba47688817fef984c64b14.zip |
API: Implement buffer_{get,set}_line
Diffstat (limited to 'src/api/buffer.h')
-rw-r--r-- | src/api/buffer.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/api/buffer.h b/src/api/buffer.h index 14e91c6382..3459ce8e45 100644 --- a/src/api/buffer.h +++ b/src/api/buffer.h @@ -25,9 +25,10 @@ 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 +/// @param line The new line. This can can be a String(replacement) or +/// Nil(delete). Anything else is an error. /// @param[out] err Details of an error that may have occurred -void buffer_set_line(Buffer buffer, int64_t index, String line, Error *err); +void buffer_set_line(Buffer buffer, int64_t index, Object line, Error *err); /// Retrieves a line range from the buffer /// |