aboutsummaryrefslogtreecommitdiff
path: root/src/api/helpers.h
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-05-12 18:13:34 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-05-13 14:11:32 -0300
commit5d0cb370f6b2d064f682118584adc456f10bcdf4 (patch)
treece08dee350c9c3f099edc9f3664e460fa51e5561 /src/api/helpers.h
parent40c82ed7cda330466eeec4b91f26972c59110f23 (diff)
downloadrneovim-5d0cb370f6b2d064f682118584adc456f10bcdf4.tar.gz
rneovim-5d0cb370f6b2d064f682118584adc456f10bcdf4.tar.bz2
rneovim-5d0cb370f6b2d064f682118584adc456f10bcdf4.zip
API: Refactor vim_{get,set}_var
- Change in dict_set_value: Passing 'nil' as value will delete the variable. - Change in dict_get_value: Removed 'pop' parameter, now values can be popped by passing 'nil' to dict_set_value - Update {buffer,window,tabpage}_get_var to reflect the changes
Diffstat (limited to 'src/api/helpers.h')
-rw-r--r--src/api/helpers.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/api/helpers.h b/src/api/helpers.h
index 9f24455b27..afa16e54f4 100644
--- a/src/api/helpers.h
+++ b/src/api/helpers.h
@@ -26,12 +26,11 @@ bool try_end(Error *err);
///
/// @param dict The vimscript dict
/// @param key The key
-/// @param bool If true it will pop the value from the dict
/// @param[out] err Details of an error that may have occurred
-Object dict_get_value(dict_T *dict, String key, bool pop, Error *err);
+Object dict_get_value(dict_T *dict, String key, Error *err);
/// Set a value in a dict. Objects are recursively expanded into their
-/// vimscript equivalents.
+/// vimscript equivalents. Passing 'nil' as value deletes the key.
///
/// @param dict The vimscript dict
/// @param key The key