mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 09:26:30 +00:00
fix(windows): stdpath("state") => "nvim-data" #18546
This was missed in https://github.com/neovim/neovim/pull/15583
This commit is contained in:
@@ -103,7 +103,8 @@ char *get_xdg_home(const XDGVarType idx)
|
|||||||
if (dir) {
|
if (dir) {
|
||||||
#if defined(WIN32)
|
#if defined(WIN32)
|
||||||
dir = concat_fnames_realloc(dir,
|
dir = concat_fnames_realloc(dir,
|
||||||
(idx == kXDGDataHome ? "nvim-data" : "nvim"),
|
((idx == kXDGDataHome
|
||||||
|
|| idx == kXDGStateHome) ? "nvim-data" : "nvim"),
|
||||||
true);
|
true);
|
||||||
#else
|
#else
|
||||||
dir = concat_fnames_realloc(dir, "nvim", true);
|
dir = concat_fnames_realloc(dir, "nvim", true);
|
||||||
|
@@ -206,7 +206,7 @@ describe('startup defaults', function()
|
|||||||
|
|
||||||
describe('$NVIM_LOG_FILE', function()
|
describe('$NVIM_LOG_FILE', function()
|
||||||
local xdgdir = 'Xtest-startup-xdg-logpath'
|
local xdgdir = 'Xtest-startup-xdg-logpath'
|
||||||
local xdgstatedir = xdgdir..'/nvim'
|
local xdgstatedir = iswin() and xdgdir..'/nvim-data' or xdgdir..'/nvim'
|
||||||
after_each(function()
|
after_each(function()
|
||||||
os.remove('Xtest-logpath')
|
os.remove('Xtest-logpath')
|
||||||
rmdir(xdgdir)
|
rmdir(xdgdir)
|
||||||
|
Reference in New Issue
Block a user