mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +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:
@@ -744,11 +744,11 @@ static bool pum_set_selected(int n, int repeat)
|
||||
if (res == OK) {
|
||||
// Edit a new, empty buffer. Set options for a "wipeout"
|
||||
// buffer.
|
||||
set_option_value("swf", 0L, NULL, OPT_LOCAL);
|
||||
set_option_value("bl", 0L, NULL, OPT_LOCAL);
|
||||
set_option_value("bt", 0L, "nofile", OPT_LOCAL);
|
||||
set_option_value("bh", 0L, "wipe", OPT_LOCAL);
|
||||
set_option_value("diff", 0L, NULL, OPT_LOCAL);
|
||||
set_option_value_give_err("swf", 0L, NULL, OPT_LOCAL);
|
||||
set_option_value_give_err("bl", 0L, NULL, OPT_LOCAL);
|
||||
set_option_value_give_err("bt", 0L, "nofile", OPT_LOCAL);
|
||||
set_option_value_give_err("bh", 0L, "wipe", OPT_LOCAL);
|
||||
set_option_value_give_err("diff", 0L, NULL, OPT_LOCAL);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user