diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-02-12 20:48:10 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-02-12 20:48:10 +0100 |
commit | e0fb7d1e38e1cf699412e212cda863420f5f8bd2 (patch) | |
tree | 0bb198354a4ce3a2639afdf82cf87e7c89a71970 | |
parent | 0ea21e41c6789c356762f970ecf168a897dcf8b6 (diff) | |
download | vim-git-e0fb7d1e38e1cf699412e212cda863420f5f8bd2.tar.gz |
patch 8.1.0899: no need to check restricted mode for setwinvar()v8.1.0899
Problem: No need to check restricted mode for setwinvar().
Solution: Remove check_restricted().
-rw-r--r-- | src/eval.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c index 484f9bcc4..46d24ef78 100644 --- a/src/eval.c +++ b/src/eval.c @@ -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) diff --git a/src/version.c b/src/version.c index a2c250e52..f3e108182 100644 --- 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, |