aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/options.c
diff options
context:
space:
mode:
authorFamiu Haque <famiuhaque@proton.me>2023-12-06 13:39:36 +0600
committerGitHub <noreply@github.com>2023-12-06 15:39:36 +0800
commite718866358652020e57fdb43bd9322f0c5732432 (patch)
treea4959ea146611677022c96b24baf1345d0192ca8 /src/nvim/api/options.c
parent5b40a1c09dda83275784053b325ad16626fc55f2 (diff)
downloadrneovim-e718866358652020e57fdb43bd9322f0c5732432.tar.gz
rneovim-e718866358652020e57fdb43bd9322f0c5732432.tar.bz2
rneovim-e718866358652020e57fdb43bd9322f0c5732432.zip
refactor(options): remove SOPT type enums (#26417)
Problem: SOPT type enums (`SOPT_NUM`, `SOPT_BOOL`, `SOPT_STRING`) are no longer used anywhere. Solution: Remove them.
Diffstat (limited to 'src/nvim/api/options.c')
-rw-r--r--src/nvim/api/options.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/nvim/api/options.c b/src/nvim/api/options.c
index 9cf91bad42..ef7c11131a 100644
--- a/src/nvim/api/options.c
+++ b/src/nvim/api/options.c
@@ -400,7 +400,7 @@ int get_option_attrs(char *name)
vimoption_T *opt = get_option(opt_idx);
if (is_tty_option(opt->fullname)) {
- return SOPT_STRING | SOPT_GLOBAL;
+ return SOPT_GLOBAL;
}
// Hidden option
@@ -410,14 +410,6 @@ int get_option_attrs(char *name)
int attrs = 0;
- if (opt->flags & P_BOOL) {
- attrs |= SOPT_BOOL;
- } else if (opt->flags & P_NUM) {
- attrs |= SOPT_NUM;
- } else if (opt->flags & P_STRING) {
- attrs |= SOPT_STRING;
- }
-
if (opt->indir == PV_NONE || (opt->indir & PV_BOTH)) {
attrs |= SOPT_GLOBAL;
}