aboutsummaryrefslogtreecommitdiff
path: root/src/api/vim.h
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-05-10 17:57:19 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-05-13 09:33:41 -0300
commit57df213b86f08124010990665dd2f8f8b655810c (patch)
tree9242865eead5c0b39bc1b5e9e909bd22a4dcd253 /src/api/vim.h
parentd488b7de1df729aa6fbc3b1107d9f5ad3be5235a (diff)
downloadrneovim-57df213b86f08124010990665dd2f8f8b655810c.tar.gz
rneovim-57df213b86f08124010990665dd2f8f8b655810c.tar.bz2
rneovim-57df213b86f08124010990665dd2f8f8b655810c.zip
API: Implement vim_set_current_line
Diffstat (limited to 'src/api/vim.h')
-rw-r--r--src/api/vim.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/api/vim.h b/src/api/vim.h
index 8cc7650410..8335081de7 100644
--- a/src/api/vim.h
+++ b/src/api/vim.h
@@ -18,10 +18,7 @@ void vim_push_keys(String str);
void vim_command(String str, Error *err);
/// Evaluates the expression str using the vim internal expression
-/// evaluator (see |expression|). Returns the expression result as:
-/// - a string if the Vim expression evaluates to a string or number
-/// - a list if the Vim expression evaluates to a Vim list
-/// - a dictionary if the Vim expression evaluates to a Vim dictionary
+/// evaluator (see |expression|).
/// Dictionaries and lists are recursively expanded.
///
/// @param str The expression str
@@ -49,13 +46,15 @@ void vim_change_directory(String dir, Error *err);
/// Return the current line
///
+/// @param[out] err Details of an error that may have occurred
/// @return The current line string
-String vim_get_current_line(void);
+String vim_get_current_line(Error *err);
/// Sets the current line
///
/// @param line The line contents
-void vim_set_current_line(String line);
+/// @param[out] err Details of an error that may have occurred
+void vim_set_current_line(Object line, Error *err);
/// Gets a global or special variable
///