aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/vim.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-03-11 15:07:49 +0100
committerGitHub <noreply@github.com>2022-03-11 15:07:49 +0100
commitc2ab922f0a6ac2f11ab3d706ca5bc097fdac4dd7 (patch)
tree58a30205195dc158140f6cc4501349cb819ecfe0 /src/nvim/api/vim.c
parentc3a6ff6aa3be259255976b1178dd07ac876ff124 (diff)
parent7e3bdc75e44b9139d8afaea4381b53ae78b15746 (diff)
downloadrneovim-c2ab922f0a6ac2f11ab3d706ca5bc097fdac4dd7.tar.gz
rneovim-c2ab922f0a6ac2f11ab3d706ca5bc097fdac4dd7.tar.bz2
rneovim-c2ab922f0a6ac2f11ab3d706ca5bc097fdac4dd7.zip
Merge pull request #17663 from dundargoc/refactor/uncrustify
refactor: apply uncrustify
Diffstat (limited to 'src/nvim/api/vim.c')
-rw-r--r--src/nvim/api/vim.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c
index 1573c6e0e3..ebf4f65c91 100644
--- a/src/nvim/api/vim.c
+++ b/src/nvim/api/vim.c
@@ -723,15 +723,15 @@ Object nvim_get_option_value(String name, Dict(option) *opts, Error *err)
break;
case 2:
switch (numval) {
- case 0:
- case 1:
- rv = BOOLEAN_OBJ(numval);
- break;
- default:
- // Boolean options that return something other than 0 or 1 should return nil. Currently this
- // only applies to 'autoread' which uses -1 as a local value to indicate "unset"
- rv = NIL;
- break;
+ case 0:
+ case 1:
+ rv = BOOLEAN_OBJ(numval);
+ break;
+ default:
+ // Boolean options that return something other than 0 or 1 should return nil. Currently this
+ // only applies to 'autoread' which uses -1 as a local value to indicate "unset"
+ rv = NIL;
+ break;
}
break;
default: