diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-02-17 11:32:18 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-02-22 21:15:16 +0100 |
commit | d3dc94615523a71606edcbe6bf528f8b49a78c7d (patch) | |
tree | d7a530ea641fc0959154ca508085f40d7d82349c /src/nvim/option.c | |
parent | 6bd6927656500c50787b16de1fadf1bc46b7aefa (diff) | |
download | rneovim-d3dc94615523a71606edcbe6bf528f8b49a78c7d.tar.gz rneovim-d3dc94615523a71606edcbe6bf528f8b49a78c7d.tar.bz2 rneovim-d3dc94615523a71606edcbe6bf528f8b49a78c7d.zip |
TUI: rework background-color detection
- Like Vim, use set_option_value() followed by reset_option_was_set().
- Do not use set_string_default(), so the default is predictable.
This affects `:set bg&`.
- Wait until end-of-startup (VimEnter) to handle the response. The
response is racey anyways, so timing is irrelevant. This allows
OptionSet to be triggered, unlike during startup.
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index b85ec6dbcc..fc1fab834e 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -883,7 +883,7 @@ set_options_default ( /// @param name The name of the option /// @param val The value of the option /// @param allocated If true, do not copy default as it was already allocated. -void set_string_default(const char *name, char *val, bool allocated) +static void set_string_default(const char *name, char *val, bool allocated) FUNC_ATTR_NONNULL_ALL { int opt_idx = findoption(name); |