mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 03:16:31 +00:00
executor: Make sure it works with API values
This commit is contained in:
@@ -197,7 +197,21 @@ Object nvim_eval(String expr, Error *err)
|
||||
return rv;
|
||||
}
|
||||
|
||||
/// Calls a VimL function with the given arguments.
|
||||
/// Returns object given as argument
|
||||
///
|
||||
/// This API function is used for testing. One should not rely on its presence
|
||||
/// in plugins.
|
||||
///
|
||||
/// @param[in] obj Object to return.
|
||||
///
|
||||
/// @return its argument.
|
||||
Object _vim_id(Object obj)
|
||||
{
|
||||
return obj;
|
||||
}
|
||||
|
||||
/// Calls a VimL function with the given arguments
|
||||
///
|
||||
/// On VimL error: Returns a generic error; v:errmsg is not updated.
|
||||
///
|
||||
/// @param fname Function to call
|
||||
|
Reference in New Issue
Block a user