diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-10 23:41:14 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-13 14:11:27 -0300 |
commit | 550938e49870f4811df08b8f1e902e48fbf1080f (patch) | |
tree | ba91a44b566d650a82b0ac23ad32bcab44bf95b2 /src/api/buffer.h | |
parent | 0e3aa877c05c162807ed4da665b35c75c53fc639 (diff) | |
download | rneovim-550938e49870f4811df08b8f1e902e48fbf1080f.tar.gz rneovim-550938e49870f4811df08b8f1e902e48fbf1080f.tar.bz2 rneovim-550938e49870f4811df08b8f1e902e48fbf1080f.zip |
API: Implement `buffer_insert`
Diffstat (limited to 'src/api/buffer.h')
-rw-r--r-- | src/api/buffer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/buffer.h b/src/api/buffer.h index 343aac956d..1e7ec07ec5 100644 --- a/src/api/buffer.h +++ b/src/api/buffer.h @@ -127,11 +127,11 @@ bool buffer_is_valid(Buffer buffer); /// Inserts a sequence of lines to a buffer at a certain index /// /// @param buffer The buffer handle -/// @param lines An array of lines /// @param lnum Insert the lines before `lnum`. If negative, it will append /// to the end of the buffer. +/// @param lines An array of lines /// @param[out] err Details of an error that may have occurred -void buffer_insert(Buffer buffer, StringArray lines, int64_t lnum, Error *err); +void buffer_insert(Buffer buffer, int64_t index, StringArray lines, Error *err); /// Creates a mark in the buffer and returns a tuple(row, col) representing /// the position of the named mark |