From 5d0cb370f6b2d064f682118584adc456f10bcdf4 Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Mon, 12 May 2014 18:13:34 -0300 Subject: 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 --- src/api/window.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api/window.h') diff --git a/src/api/window.h b/src/api/window.h index 52f4d9719f..e9baa3f170 100644 --- a/src/api/window.h +++ b/src/api/window.h @@ -65,7 +65,7 @@ void window_set_width(Window window, int64_t width, Error *err); /// @return The variable value Object window_get_var(Window window, String name, Error *err); -/// Sets a window variable +/// Sets a window variable. Passing 'nil' as value deletes the variable. /// /// @param window The window handle /// @param name The variable name -- cgit