diff options
| author | Björn Linse <bjorn.linse@gmail.com> | 2021-09-28 19:12:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-28 19:12:39 +0200 |
| commit | 3507d58dfb87923aa4031cbefaf1ef576a45dcaf (patch) | |
| tree | 1734196f5dd366dda2306a7055cf1caac43ab97c /test/functional/fixtures | |
| parent | 19a77cd5a7cbd304e57118d6a09798223b6d2dbf (diff) | |
| parent | a0ec8597e3ef01b0121af7542fc482ae8e7eeb70 (diff) | |
| download | rneovim-3507d58dfb87923aa4031cbefaf1ef576a45dcaf.tar.gz rneovim-3507d58dfb87923aa4031cbefaf1ef576a45dcaf.tar.bz2 rneovim-3507d58dfb87923aa4031cbefaf1ef576a45dcaf.zip | |
Merge pull request #15812 from bfredl/taba
fix(runtime): make a copy of runtime_search_path when iterating
Diffstat (limited to 'test/functional/fixtures')
| -rw-r--r-- | test/functional/fixtures/pack/foo/opt/funky/filen.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/functional/fixtures/pack/foo/opt/funky/filen.lua b/test/functional/fixtures/pack/foo/opt/funky/filen.lua new file mode 100644 index 0000000000..a33b83c2a7 --- /dev/null +++ b/test/functional/fixtures/pack/foo/opt/funky/filen.lua @@ -0,0 +1,12 @@ +table.insert(_G.test_loadorder, "funky!") + +if not _G.nesty then + _G.nesty = true + local save_order = _G.test_loadorder + _G.test_loadorder = {} + _G.vim.o.pp = "" -- funky! + vim.cmd [[runtime! filen.lua ]] + _G.nested_order = _G.test_loadorder + _G.test_loadorder = save_order + _G.nesty = nil +end |