diff options
Diffstat (limited to 'src/nvim/option.h')
-rw-r--r-- | src/nvim/option.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/nvim/option.h b/src/nvim/option.h index fd1f7f8d42..5c2b2662b5 100644 --- a/src/nvim/option.h +++ b/src/nvim/option.h @@ -1,6 +1,23 @@ #ifndef NVIM_OPTION_H #define NVIM_OPTION_H +/* flags for buf_copy_options() */ +#define BCO_ENTER 1 /* going to enter the buffer */ +#define BCO_ALWAYS 2 /* always copy the options */ +#define BCO_NOHELP 4 /* don't touch the help related options */ + +/* + * "flags" values for option-setting functions. + * When OPT_GLOBAL and OPT_LOCAL are both missing, set both local and global + * values, get local value. + */ +#define OPT_FREE 1 /* free old value if it was allocated */ +#define OPT_GLOBAL 2 /* use global value */ +#define OPT_LOCAL 4 /* use local value */ +#define OPT_MODELINE 8 /* option in modeline */ +#define OPT_WINONLY 16 /* only set window-local options */ +#define OPT_NOWIN 32 /* don't set window-local options */ + #ifdef INCLUDE_GENERATED_DECLARATIONS # include "option.h.generated.h" #endif |