Files
neovim/test/functional/fixtures/pack/foo/opt/funky/filen.lua
Björn Linse a0ec8597e3 fix(runtime): make a copy of runtime_search_path when iterating
This is to prevent concurrent modification, just like save_rtp
in the vim 8 implementation
2021-09-27 21:17:53 +02:00

13 lines
301 B
Lua

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