changeset 15784:703220741ed1 v8.1.0899

patch 8.1.0899: no need to check restricted mode for setwinvar() commit https://github.com/vim/vim/commit/e0fb7d1e38e1cf699412e212cda863420f5f8bd2 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 12 20:48:10 2019 +0100 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().
author Bram Moolenaar <Bram@vim.org>
date Tue, 12 Feb 2019 21:00:15 +0100
parents d83ab0d685b8
children 235cc7c2f86a
files src/eval.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/eval.c
+++ b/src/eval.c
@@ -8750,7 +8750,7 @@ setwinvar(typval_T *argvars, typval_T *r
     char_u	nbuf[NUMBUFLEN];
     tabpage_T	*tp = NULL;
 
-    if (check_restricted() || check_secure())
+    if (check_secure())
 	return;
 
     if (off == 1)
--- a/src/version.c
+++ b/src/version.c
@@ -784,6 +784,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    899,
+/**/
     898,
 /**/
     897,