mirror of
https://github.com/neovim/neovim.git
synced 2025-10-02 16:08:36 +00:00
vim-patch:8.1.2045: the option.c file is too big (#19854)
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.
This commit is contained in:
@@ -19,23 +19,6 @@ typedef enum {
|
||||
#define BCO_ALWAYS 2 // always copy the options
|
||||
#define BCO_NOHELP 4 // don't touch the help related options
|
||||
|
||||
/// Flags for option-setting functions
|
||||
///
|
||||
/// When OPT_GLOBAL and OPT_LOCAL are both missing, set both local and global
|
||||
/// values, get local value.
|
||||
typedef enum {
|
||||
OPT_FREE = 0x01, ///< Free old value if it was allocated.
|
||||
OPT_GLOBAL = 0x02, ///< Use global value.
|
||||
OPT_LOCAL = 0x04, ///< Use local value.
|
||||
OPT_MODELINE = 0x08, ///< Option in modeline.
|
||||
OPT_WINONLY = 0x10, ///< Only set window-local options.
|
||||
OPT_NOWIN = 0x20, ///< Don’t set window-local options.
|
||||
OPT_ONECOLUMN = 0x40, ///< list options one per line
|
||||
OPT_NO_REDRAW = 0x80, ///< ignore redraw flags on option
|
||||
OPT_SKIPRTP = 0x100, ///< "skiprtp" in 'sessionoptions'
|
||||
OPT_CLEAR = 0x200, ///< Clear local value of an option.
|
||||
} OptionFlags;
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "option.h.generated.h"
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user