From 0d5d9e90ab03080b5ca5ff6e7ed5b0a13d9b8a46 Mon Sep 17 00:00:00 2001 From: dundargoc <33953936+dundargoc@users.noreply.github.com> Date: Fri, 13 May 2022 01:54:44 +0200 Subject: fix(windows): stdpath("state") => "nvim-data" #18546 This was missed in https://github.com/neovim/neovim/pull/15583 --- src/nvim/os/stdpaths.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/os/stdpaths.c b/src/nvim/os/stdpaths.c index 5d6ffc1db1..faeb2fe829 100644 --- a/src/nvim/os/stdpaths.c +++ b/src/nvim/os/stdpaths.c @@ -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); -- cgit