api: {get,set}_option should {get,set} global value of local options (#6405)

- nvim_get_option should return the global default of a local option.
- nvim_set_option should set the global default of a local option.
This commit is contained in:
Jakob Schnitzer
2017-03-30 22:03:52 +02:00
committed by Justin M. Keyes
parent 66b336d89b
commit eb0e94f71b
5 changed files with 40 additions and 16 deletions

View File

@@ -440,7 +440,7 @@ Object nvim_get_vvar(String name, Error *err)
///
/// @param name Option name
/// @param[out] err Error details, if any
/// @return Option value
/// @return Option value (global)
Object nvim_get_option(String name, Error *err)
FUNC_API_SINCE(1)
{