mirror of
https://github.com/neovim/neovim.git
synced 2025-09-22 11:18:19 +00:00
vim-patch:8.2.4492: no error if an option is given a value with ":let &opt = val" (#19670)
Problem: No error if an option is given an invalid value with
":let &opt = val".
Solution: Give the error. (closes vim/vim#9864)
8ccbbeb620
This commit is contained in:
@@ -678,8 +678,11 @@ static char *ex_let_one(char *arg, typval_T *const tv, const bool copy, const bo
|
||||
|
||||
if (!failed) {
|
||||
if (opt_type != gov_string || s != NULL) {
|
||||
set_option_value(arg, n, s, opt_flags);
|
||||
char *err = set_option_value(arg, n, s, opt_flags);
|
||||
arg_end = p;
|
||||
if (err != NULL) {
|
||||
emsg(_(err));
|
||||
}
|
||||
} else {
|
||||
emsg(_(e_stringreq));
|
||||
}
|
||||
|
Reference in New Issue
Block a user