mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +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:
@@ -4074,7 +4074,7 @@ static int open_cmdwin(void)
|
||||
// Create empty command-line buffer.
|
||||
buf_open_scratch(0, _("[Command Line]"));
|
||||
// Command-line buffer has bufhidden=wipe, unlike a true "scratch" buffer.
|
||||
set_option_value("bh", 0L, "wipe", OPT_LOCAL);
|
||||
set_option_value_give_err("bh", 0L, "wipe", OPT_LOCAL);
|
||||
curwin->w_p_rl = cmdmsg_rl;
|
||||
cmdmsg_rl = false;
|
||||
curbuf->b_p_ma = true;
|
||||
@@ -4092,7 +4092,7 @@ static int open_cmdwin(void)
|
||||
add_map("<Tab>", "<C-X><C-V>", MODE_INSERT, true);
|
||||
add_map("<Tab>", "a<C-X><C-V>", MODE_NORMAL, true);
|
||||
}
|
||||
set_option_value("ft", 0L, "vim", OPT_LOCAL);
|
||||
set_option_value_give_err("ft", 0L, "vim", OPT_LOCAL);
|
||||
}
|
||||
curbuf->b_ro_locked--;
|
||||
|
||||
|
Reference in New Issue
Block a user