aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/stdpaths.c
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2022-05-13 01:54:44 +0200
committerGitHub <noreply@github.com>2022-05-12 16:54:44 -0700
commit0d5d9e90ab03080b5ca5ff6e7ed5b0a13d9b8a46 (patch)
tree4e020e7124391286d6911ef4f08da5f1e2dee6a0 /src/nvim/os/stdpaths.c
parentaaeffba6846bf1e6065be3079e6e9d4310298227 (diff)
downloadrneovim-0d5d9e90ab03080b5ca5ff6e7ed5b0a13d9b8a46.tar.gz
rneovim-0d5d9e90ab03080b5ca5ff6e7ed5b0a13d9b8a46.tar.bz2
rneovim-0d5d9e90ab03080b5ca5ff6e7ed5b0a13d9b8a46.zip
fix(windows): stdpath("state") => "nvim-data" #18546
This was missed in https://github.com/neovim/neovim/pull/15583
Diffstat (limited to 'src/nvim/os/stdpaths.c')
-rw-r--r--src/nvim/os/stdpaths.c3
1 files changed, 2 insertions, 1 deletions
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);