Skip to content

Commit

Permalink
fix(windows): make state stdpath use 'nvim-data'
Browse files Browse the repository at this point in the history
The tests are failing as the stdpath('data') had a nvim-data in its path
while stdpath('state') does not.
  • Loading branch information
dundargoc committed May 12, 2022
1 parent a9d25e9 commit d076aa2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/nvim/os/stdpaths.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d076aa2

Please sign in to comment.