From bd0615590b901b99e8cce3c5e52c83af69649cd5 Mon Sep 17 00:00:00 2001 From: rhysd Date: Sun, 23 Jun 2019 21:02:40 +0900 Subject: vim-patch:8.1.1543: const test fails with small features Problem: Const test fails with small features. Solution: Don't unlet non-existing variables. https://github.com/vim/vim/commit/b6e3b88ec8b757b3acf940f8b4938e975c39ba67 --- src/nvim/testdir/test_const.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/nvim/testdir/test_const.vim b/src/nvim/testdir/test_const.vim index 54b88358d8..641f7cc051 100644 --- a/src/nvim/testdir/test_const.vim +++ b/src/nvim/testdir/test_const.vim @@ -38,8 +38,10 @@ func Test_define_var_with_lock() unlet F unlet l unlet d - unlet j - unlet c + if has('channel') + unlet j + unlet c + endif unlet b unlet n endfunc -- cgit