diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-10 23:17:39 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-13 14:11:27 -0300 |
commit | 978755eb90391e25cbb596dc562923680464325e (patch) | |
tree | 7809d635b2373d35e0fc1bd7f2f3d0fa49bc1470 /src/api/buffer.h | |
parent | 63da1f948a43d90b08d2d72e362c25e9d1d23b4d (diff) | |
download | rneovim-978755eb90391e25cbb596dc562923680464325e.tar.gz rneovim-978755eb90391e25cbb596dc562923680464325e.tar.bz2 rneovim-978755eb90391e25cbb596dc562923680464325e.zip |
API: Implement buffer_{get,set}_option
Diffstat (limited to 'src/api/buffer.h')
-rw-r--r-- | src/api/buffer.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/api/buffer.h b/src/api/buffer.h index 6c72a9f099..343aac956d 100644 --- a/src/api/buffer.h +++ b/src/api/buffer.h @@ -93,22 +93,16 @@ Object buffer_set_var(Buffer buffer, 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 buffer_get_option(Buffer buffer, String name, Error *err); +Object buffer_get_option(Buffer buffer, String name, Error *err); -/// Sets a buffer option value +/// Sets a buffer option value. Passing 'nil' as value deletes the option(only +/// works if there's a global fallback) /// /// @param buffer The buffer handle /// @param name The option name /// @param value The option value /// @param[out] err Details of an error that may have occurred -void buffer_set_option(Buffer buffer, String name, String value, Error *err); - -/// Deletes a buffer option(falls back to the global value if available) -/// -/// @param buffer The buffer handle -/// @param name The option name -/// @param[out] err Details of an error that may have occurred -void buffer_del_option(Buffer buffer, String name, Error *err); +void buffer_set_option(Buffer buffer, String name, Object value, Error *err); /// Gets the full file name for the buffer /// |