mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 17:28:23 +00:00
api: Add warnings about the returned value to \*del_var functions
This commit is contained in:
@@ -223,7 +223,10 @@ Object window_set_var(Window window, String name, Object value, Error *err)
|
||||
/// @param window The window handle
|
||||
/// @param name The variable name
|
||||
/// @param[out] err Details of an error that may have occurred
|
||||
/// @return The old value
|
||||
/// @return The old value or nil if there was no previous value.
|
||||
///
|
||||
/// @warning It may return nil if there was no previous value
|
||||
/// or if previous value was `v:null`.
|
||||
Object window_del_var(Window window, String name, Error *err)
|
||||
{
|
||||
win_T *win = find_window_by_handle(window, err);
|
||||
|
Reference in New Issue
Block a user