aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-12-06 23:21:56 -0500
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-12-06 23:24:09 -0500
commitf17700544707160fb9588f37d1f3daef4f7bc483 (patch)
treea99bb2c763fa8ebc2b68703ad1212bc06936aafd /src/nvim/eval.c
parent4c4997e988e506050563805541322ece396a0368 (diff)
downloadrneovim-f17700544707160fb9588f37d1f3daef4f7bc483.tar.gz
rneovim-f17700544707160fb9588f37d1f3daef4f7bc483.tar.bz2
rneovim-f17700544707160fb9588f37d1f3daef4f7bc483.zip
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) https://github.com/vim/vim/commit/88b53fd0521d1e62df17a8a1f2181425e9d4854c
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index a5d79bcd4a..cd29e4ef19 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -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;
}
}