]> granicus.if.org Git - vim/commitdiff
patch 8.1.0899: no need to check restricted mode for setwinvar() v8.1.0899
authorBram Moolenaar <Bram@vim.org>
Tue, 12 Feb 2019 19:48:10 +0000 (20:48 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 12 Feb 2019 19:48:10 +0000 (20:48 +0100)
Problem:    No need to check restricted mode for setwinvar().
Solution:   Remove check_restricted().

src/eval.c
src/version.c

index 484f9bcc45a520108df8fd3b94d017c6f6638c7a..46d24ef78814c8294bad1e880dbba266356ffef0 100644 (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)
index a2c250e52964c438ea8fbc6ab40b5cf694456c3a..f3e1081822b231b4cbeb9a661588088e569083ac 100644 (file)
@@ -783,6 +783,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    899,
 /**/
     898,
 /**/