mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +00:00

Problem: The option.c file is too big.
Solution: Split off the code dealing with strings. (Yegappan Lakshmanan,
closes vim/vim#4937)
dac1347b4d
Cherry-pick set_string_option_direct_in_win() from patch 8.1.1405.
Cherry-pick shift_line() comment change from patch 8.1.2096.
Move 'clipboard' default parsing to didset_string_options().
Reorder option flags to put Nvim-only flags at the end.
26 lines
604 B
C
26 lines
604 B
C
#ifndef NVIM_OPTION_H
|
|
#define NVIM_OPTION_H
|
|
|
|
#include "nvim/ex_cmds_defs.h" // for exarg_T
|
|
|
|
/// Returned by get_option_value().
|
|
typedef enum {
|
|
gov_unknown,
|
|
gov_bool,
|
|
gov_number,
|
|
gov_string,
|
|
gov_hidden_bool,
|
|
gov_hidden_number,
|
|
gov_hidden_string,
|
|
} getoption_T;
|
|
|
|
// 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
|
|
|
|
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
|
# include "option.h.generated.h"
|
|
#endif
|
|
#endif // NVIM_OPTION_H
|