1
0
forked from aniani/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().
This commit is contained in:
Bram Moolenaar 2019-02-12 20:48:10 +01:00
parent 0ea21e41c6
commit e0fb7d1e38
2 changed files with 3 additions and 1 deletions

View File

@ -8750,7 +8750,7 @@ setwinvar(typval_T *argvars, typval_T *rettv UNUSED, int off)
char_u nbuf[NUMBUFLEN];
tabpage_T *tp = NULL;
if (check_restricted() || check_secure())
if (check_secure())
return;
if (off == 1)

View File

@ -783,6 +783,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
899,
/**/
898,
/**/