vim-patch:8.1.0899: no need to check restricted mode for setwinvar()

Problem:    No need to check restricted mode for setwinvar().
Solution:   Remove check_restricted().
e0fb7d1e38
This commit is contained in:
Jan Edmund Lazo 2019-07-23 22:23:28 -04:00
parent d1faf900b1
commit 2385039623

View File

@ -15731,7 +15731,7 @@ static void f_setwinvar(typval_T *argvars, typval_T *rettv, FunPtr fptr)
static void setwinvar(typval_T *argvars, typval_T *rettv, int off)
{
if (check_restricted() || check_secure()) {
if (check_secure()) {
return;
}