aboutsummaryrefslogtreecommitdiff
path: root/src/api/vim.h
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-05-08 18:48:40 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-05-13 09:33:41 -0300
commit7c01d5ff9286d262097484c680e3a4eab49e2911 (patch)
tree17c4402f90638019525612720216cdc444ced5ef /src/api/vim.h
parent5f5e39323ee799def35adde7cfee06698c2dfcc8 (diff)
downloadrneovim-7c01d5ff9286d262097484c680e3a4eab49e2911.tar.gz
rneovim-7c01d5ff9286d262097484c680e3a4eab49e2911.tar.bz2
rneovim-7c01d5ff9286d262097484c680e3a4eab49e2911.zip
API: Implement vim_{get,set}_var
Diffstat (limited to 'src/api/vim.h')
-rw-r--r--src/api/vim.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/api/vim.h b/src/api/vim.h
index 8335081de7..a18f9c69e9 100644
--- a/src/api/vim.h
+++ b/src/api/vim.h
@@ -62,15 +62,15 @@ void vim_set_current_line(Object line, Error *err);
/// @param name The variable name
/// @param[out] err Details of an error that may have occurred
/// @return The variable value
-Object vim_get_var(bool special, String name, Error *err);
+Object vim_get_var(bool special, String name, bool pop, Error *err);
-/// Sets a global or special variable
+/// Sets a global variable
///
-/// @param special If it's a special(:v) variable
/// @param name The variable name
/// @param value The variable value
/// @param[out] err Details of an error that may have occurred
-void vim_set_var(bool special, String name, Object value, Error *err);
+/// @return the old value if any
+Object vim_set_var(String name, Object value, Error *err);
/// Get an option value string
///