From b6e3b88ec8b757b3acf940f8b4938e975c39ba67 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 15 Jun 2019 17:50:57 +0200 Subject: patch 8.1.1543: const test fails with small features Problem: Const test fails with small features. Solution: Don't unlet non-existing variables. --- src/testdir/test_const.vim | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/testdir') diff --git a/src/testdir/test_const.vim b/src/testdir/test_const.vim index f0b9a052cc..bb47e5e5fd 100644 --- a/src/testdir/test_const.vim +++ b/src/testdir/test_const.vim @@ -43,8 +43,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 unlet bl @@ -92,8 +94,10 @@ func Test_define_l_var_with_lock() unlet l:F unlet l:l unlet l:d - unlet l:j - unlet l:c + if has('channel') + unlet l:j + unlet l:c + endif unlet l:b unlet l:n unlet l:bl -- cgit v1.2.3