mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 09:26:30 +00:00
vim-patch:8.2.4753: error from setting an option is silently ignored (#19888)
Problem: Error from setting an option is silently ignored.
Solution: Handle option value errors better. Fix uses of N_().
31e5c60a68
This commit is contained in:
@@ -1156,7 +1156,7 @@ void do_highlight(const char *line, const bool forceit, const bool init)
|
||||
if (dark != -1
|
||||
&& dark != (*p_bg == 'd')
|
||||
&& !option_was_set("bg")) {
|
||||
set_option_value("bg", 0L, (dark ? "dark" : "light"), 0);
|
||||
set_option_value_give_err("bg", 0L, (dark ? "dark" : "light"), 0);
|
||||
reset_option_was_set("bg");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user