From 71ac00ccb523383411b907b5fdf00a376e24a6f0 Mon Sep 17 00:00:00 2001 From: Gregory Anders Date: Mon, 11 Oct 2021 22:09:08 -0600 Subject: feat(api): add nvim_get_option_value --- src/nvim/eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/eval.c') 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 -- cgit