mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
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:
@@ -8750,7 +8750,7 @@ setwinvar(typval_T *argvars, typval_T *rettv UNUSED, int off)
|
|||||||
char_u nbuf[NUMBUFLEN];
|
char_u nbuf[NUMBUFLEN];
|
||||||
tabpage_T *tp = NULL;
|
tabpage_T *tp = NULL;
|
||||||
|
|
||||||
if (check_restricted() || check_secure())
|
if (check_secure())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (off == 1)
|
if (off == 1)
|
||||||
|
@@ -783,6 +783,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
899,
|
||||||
/**/
|
/**/
|
||||||
898,
|
898,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user