diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-09 11:52:39 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-13 09:33:41 -0300 |
commit | d2b715bf1de31fc784b399d6aafb5f7e41aef6cc (patch) | |
tree | 628f3ee34485e1af90374b744adea909c514c167 /src/api/vim.h | |
parent | 7c01d5ff9286d262097484c680e3a4eab49e2911 (diff) | |
download | rneovim-d2b715bf1de31fc784b399d6aafb5f7e41aef6cc.tar.gz rneovim-d2b715bf1de31fc784b399d6aafb5f7e41aef6cc.tar.bz2 rneovim-d2b715bf1de31fc784b399d6aafb5f7e41aef6cc.zip |
API: Implement vim_{get,set}_option
Some functions from upstream VIM were reintegrated for this:
- get_option_value_strict
- set_option_value_err
- set_option_value_for
- unset_global_local_option
Diffstat (limited to 'src/api/vim.h')
-rw-r--r-- | src/api/vim.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/api/vim.h b/src/api/vim.h index a18f9c69e9..81aadb2014 100644 --- a/src/api/vim.h +++ b/src/api/vim.h @@ -77,20 +77,14 @@ Object vim_set_var(String name, Object value, Error *err); /// @param name The option name /// @param[out] err Details of an error that may have occurred /// @return The option value -String vim_get_option(String name, Error *err); +Object vim_get_option(String name, Error *err); /// Sets an option value /// /// @param name The option name /// @param value The new option value /// @param[out] err Details of an error that may have occurred -void vim_set_option(String name, String value, Error *err); - -/// Deletes an option, falling back to the default value -/// -/// @param name The option name -/// @param[out] err Details of an error that may have occurred -void vim_del_option(String name, Error *err); +void vim_set_option(String name, Object value, Error *err); /// Write a message to vim output buffer /// |