diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-06-15 17:50:57 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-06-15 17:50:57 +0200 |
commit | b6e3b88ec8b757b3acf940f8b4938e975c39ba67 (patch) | |
tree | 8583d0c051be7d2bedd8c2d4e08ae54b887c7af5 /src/testdir | |
parent | d7c968794710f338d491072171df48f96612cf72 (diff) | |
download | vim-git-b6e3b88ec8b757b3acf940f8b4938e975c39ba67.tar.gz |
patch 8.1.1543: const test fails with small featuresv8.1.1543
Problem: Const test fails with small features.
Solution: Don't unlet non-existing variables.
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_const.vim | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/testdir/test_const.vim b/src/testdir/test_const.vim index f0b9a052c..bb47e5e5f 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 |