logs: make kXDGCacheHome if it doesn't exist (#13758)

This commit is contained in:
Michael Lingelbach
2021-01-16 12:14:59 -08:00
committed by GitHub
parent 0fad952a2b
commit abbfaf286f
3 changed files with 20 additions and 12 deletions

View File

@@ -233,13 +233,6 @@ describe('startup defaults', function()
}})
eq(xdgcachedir..'/log', string.gsub(eval('$NVIM_LOG_FILE'), '\\', '/'))
end)
it('defaults to .nvimlog if stdpath("cache") is invalid', function()
clear({env={
XDG_CACHE_HOME='Xtest-missing-xdg-dir',
NVIM_LOG_FILE='.', -- Any directory is invalid.
}})
eq('.nvimlog', eval('$NVIM_LOG_FILE'))
end)
end)
end)