commit | c96a2f3b887d9a1f850f0dacc92616bee11f966b | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Aug 06 19:45:31 2016 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Aug 06 19:45:31 2016 +0200 |
tree | d823255818373ba7e9d48147e6da25054a05ac1e | |
parent | 328604307ba26e3182eb0b096e820f9cd346c2dd [diff] [blame] |
patch 7.4.2167 Problem: Small build can't run tests. Solution: Don't try setting 'packpath'.
diff --git a/src/testdir/setup.vim b/src/testdir/setup.vim index dee3de2..a028401 100644 --- a/src/testdir/setup.vim +++ b/src/testdir/setup.vim
@@ -2,7 +2,9 @@ " Make sure 'runtimepath' and 'packpath' does not include $HOME. set rtp=$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after -let &packpath = &rtp +if has('packages') + let &packpath = &rtp +endif " Only when the +eval feature is present. if 1