diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2021-12-04 14:30:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-04 14:30:27 -0700 |
commit | 1e6eeca9d1360554ee18525603e83c3a1999a622 (patch) | |
tree | 74bdad7d2506a0a93d112230fe9c3bf1f8652675 /src/nvim/eval.c | |
parent | 222ef0c00d97aa2d5e17ca6b14aea037155595ee (diff) | |
parent | 71ac00ccb523383411b907b5fdf00a376e24a6f0 (diff) | |
download | rneovim-1e6eeca9d1360554ee18525603e83c3a1999a622.tar.gz rneovim-1e6eeca9d1360554ee18525603e83c3a1999a622.tar.bz2 rneovim-1e6eeca9d1360554ee18525603e83c3a1999a622.zip |
Merge pull request #15996 from gpanders/nvim_get_option_value
feat(api): add nvim_{get,set}_option_value
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 29740283c6..2faae08fc8 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -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 |