mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
d1faf900b1
commit
2385039623
@ -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)
|
static void setwinvar(typval_T *argvars, typval_T *rettv, int off)
|
||||||
{
|
{
|
||||||
if (check_restricted() || check_secure()) {
|
if (check_secure()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user