diff options
author | Dominique Pelle <dominique.pelle@gmail.com> | 2022-01-08 12:41:16 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-08 12:41:16 +0000 |
commit | 748b308eebe8d8860888eb27da08333f175d547d (patch) | |
tree | dcb524e3faab88b0238bd892cdfa2870252c7e51 /src/option.c | |
parent | 370791465e745354d66696de8cbd15504cf958c0 (diff) | |
download | vim-git-748b308eebe8d8860888eb27da08333f175d547d.tar.gz |
patch 8.2.4038: various code not used when features are disabledv8.2.4038
Problem: Various code not used when features are disabled.
Solution: Add #ifdefs. (Dominique Pellé, closes #9491)
Diffstat (limited to 'src/option.c')
-rw-r--r-- | src/option.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/option.c b/src/option.c index dd5159314..169f92998 100644 --- a/src/option.c +++ b/src/option.c @@ -753,6 +753,7 @@ set_number_default(char *name, long val) options[opt_idx].def_val[VI_DEFAULT] = (char_u *)(long_i)val; } +#if defined(FEAT_PROP_POPUP) || defined(PROTO) /* * Set all window-local and buffer-local options to the Vim default. * local-global options will use the global value. @@ -784,6 +785,7 @@ set_local_options_default(win_T *wp, int do_buffer) curwin = save_curwin; curbuf = curwin->w_buffer; } +#endif #if defined(EXITFREE) || defined(PROTO) /* @@ -5535,6 +5537,7 @@ get_option_var(int opt_idx) return options[opt_idx].var; } +#if defined(FEAT_EVAL) || defined(PROTO) /* * Return the full name of the option at 'opt_idx' */ @@ -5543,6 +5546,7 @@ get_option_fullname(int opt_idx) { return (char_u *)options[opt_idx].fullname; } +#endif /* * Get the value of 'equalprg', either the buffer-local one or the global one. |