mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 14:28:18 +00:00
feat(api): add nvim_get_option_value
This commit is contained in:
@@ -4828,7 +4828,7 @@ int get_option_tv(const char **const arg, typval_T *const rettv, const bool eval
|
||||
} else if (opt_type == -1) { // hidden number option
|
||||
rettv->v_type = VAR_NUMBER;
|
||||
rettv->vval.v_number = 0;
|
||||
} else if (opt_type == 1) { // number option
|
||||
} else if (opt_type == 1 || opt_type == 2) { // number or boolean option
|
||||
rettv->v_type = VAR_NUMBER;
|
||||
rettv->vval.v_number = numval;
|
||||
} else { // string option
|
||||
|
Reference in New Issue
Block a user