Skip to content

Commit

Permalink
Fix for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Nov 5, 2023
1 parent 17e9c7f commit 1a844aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions denops/dpp/dpp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,9 @@ export class Dpp {
await denops.call("dpp#util#_expand", hooksFile) as string,
))
) {
const hooksFileLines = (await Deno.readTextFile(hooksFile)).split("\n");
const hooksFileLines = (await Deno.readTextFile(hooksFile)).split(
/\r?\n/,
);

const parsedHooksFile = parseHooksFile(
options.hooksFileMarker,
Expand Down Expand Up @@ -332,7 +334,7 @@ export class Dpp {
async (vimrc) => await denops.call("dpp#util#_expand", vimrc) as string,
));
for await (const vimrc of inlineVimrcs) {
const vimrcLines = (await Deno.readTextFile(vimrc)).split("\n");
const vimrcLines = (await Deno.readTextFile(vimrc)).split(/\r?\n/);
if (extname(vimrc) == ".lua") {
stateLines = stateLines.concat(
["lua <<EOF"],
Expand Down

0 comments on commit 1a844aa

Please sign in to comment.