summaryrefslogtreecommitdiff
path: root/src/testdir/setup.vim
diff options
context:
space:
mode:
Diffstat (limited to 'src/testdir/setup.vim')
-rw-r--r--src/testdir/setup.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/testdir/setup.vim b/src/testdir/setup.vim
index dee3de212..a02840158 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