mirror of
https://github.com/neovim/neovim.git
synced 2025-12-07 23:22:39 +00:00
vim-patch:8.1.0564: setting v:errors to wrong type still possible
Problem: Setting v:errors to wrong type still possible.
Solution: Return after giving an error message. (Christian Brabandt)
88b53fd052
This commit is contained in:
@@ -19254,6 +19254,7 @@ static void set_var(const char *name, const size_t name_len, typval_T *const tv,
|
||||
return;
|
||||
} else if (v->di_tv.v_type != tv->v_type) {
|
||||
EMSG2(_("E963: setting %s to value with wrong type"), name);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user