mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
functests: Fix tests
This commit is contained in:
@@ -29,9 +29,11 @@ describe(':preserve', function()
|
||||
|
||||
it("saves to custom 'directory' and (R)ecovers (issue #1836)", function()
|
||||
local testfile = 'testfile_recover_spec'
|
||||
-- Note: `set swapfile` *must* go after `set directory`: otherwise it may
|
||||
-- attempt to create a swapfile in different directory.
|
||||
local init = [[
|
||||
set swapfile fileformat=unix undolevels=-1
|
||||
set directory^=]]..swapdir..[[//
|
||||
set swapfile fileformat=unix undolevels=-1
|
||||
]]
|
||||
|
||||
source(init)
|
||||
|
||||
Reference in New Issue
Block a user