From 2385039623a8afcfd6d3d446c3272ac167d9b586 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Tue, 23 Jul 2019 22:23:28 -0400 Subject: [PATCH] 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(). https://github.com/vim/vim/commit/e0fb7d1e38e1cf699412e212cda863420f5f8bd2 --- src/nvim/eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 4e5c310fb6..8e79ff59b6 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -15731,7 +15731,7 @@ static void f_setwinvar(typval_T *argvars, typval_T *rettv, FunPtr fptr) static void setwinvar(typval_T *argvars, typval_T *rettv, int off) { - if (check_restricted() || check_secure()) { + if (check_secure()) { return; }