aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-07-24 20:54:14 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-07-24 22:31:26 -0400
commit290a9632d60bd97972609a1925d12348ada4889d (patch)
tree2bd8a198f1643eb0678fc6ecb34c34f6a82411f6 /src
parent28c3679b641eabea76b67001638aec4884e3d789 (diff)
downloadrneovim-290a9632d60bd97972609a1925d12348ada4889d.tar.gz
rneovim-290a9632d60bd97972609a1925d12348ada4889d.tar.bz2
rneovim-290a9632d60bd97972609a1925d12348ada4889d.zip
vim-patch:8.0.0806: tests may try to create XfakeHOME twice
Problem: Tests may try to create XfakeHOME twice. Solution: Avoid loading setup.vim twice. https://github.com/vim/vim/commit/f98246d4849e670c6660e97887428dcddf88dc9f
Diffstat (limited to 'src')
-rw-r--r--src/nvim/testdir/setup.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/testdir/setup.vim b/src/nvim/testdir/setup.vim
index 49656da4d5..8f2cf80c6b 100644
--- a/src/nvim/testdir/setup.vim
+++ b/src/nvim/testdir/setup.vim
@@ -1,5 +1,11 @@
" Common preparations for running tests.
+" Only load this once.
+if exists('s:did_load')
+ finish
+endif
+let s:did_load = 1
+
" Align Nvim defaults to Vim.
set sidescroll=0
set directory^=.