fix(windows): stdpath("state") => "nvim-data" #18546

This was missed in https://github.com/neovim/neovim/pull/15583
This commit is contained in:
dundargoc
2022-05-13 01:54:44 +02:00
committed by GitHub
parent aaeffba684
commit 0d5d9e90ab
2 changed files with 3 additions and 2 deletions

View File

@@ -103,7 +103,8 @@ char *get_xdg_home(const XDGVarType idx)
if (dir) {
#if defined(WIN32)
dir = concat_fnames_realloc(dir,
(idx == kXDGDataHome ? "nvim-data" : "nvim"),
((idx == kXDGDataHome
|| idx == kXDGStateHome) ? "nvim-data" : "nvim"),
true);
#else
dir = concat_fnames_realloc(dir, "nvim", true);