Skip to content

Commit

Permalink
Fix make_state()
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Nov 5, 2023
1 parent c87a58a commit 33897e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions denops/dpp/dpp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ export class Dpp {
// Write state file
const stateFile = `${basePath}/${name}/state.vim`;
// NOTE: Deno.writeTextFile does not work in Windows.
await fn.writefile(denops, stateLines.join("\n"), stateFile);
await fn.writefile(denops, stateLines, stateFile);

const cacheFile = `${basePath}/${name}/cache.vim`;
const cacheLines = [
Expand All @@ -388,7 +388,7 @@ export class Dpp {
]),
];
// NOTE: Deno.writeTextFile does not work in Windows.
await fn.writefile(denops, cacheLines.join("\n"), cacheFile);
await fn.writefile(denops, cacheLines, cacheFile);

//console.log(stateLines);
//console.log(cacheLines);
Expand All @@ -410,7 +410,7 @@ export class Dpp {
}

// NOTE: Deno.writeTextFile does not work in Windows.
await fn.writefile(denops, generatedFtplugins[path].join("\n"), path);
await fn.writefile(denops, generatedFtplugins[path], path);
}
}

Expand Down

0 comments on commit 33897e9

Please sign in to comment.