We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9d83d18 + 78ecf1d commit b564a2eCopy full SHA for b564a2e
denops/gin/util/ensure_path.ts
@@ -15,7 +15,7 @@ export async function ensurePath(
15
denops: Denops,
16
path?: string,
17
): Promise<string> {
18
- const bufname = await fn.expand(denops, path ?? "%") as string;
19
- const abspath = await fn.fnamemodify(denops, bufname, ":p");
+ const expr = path ?? await fn.bufname(denops);
+ const abspath = await fn.fnamemodify(denops, expr, ":p");
20
return abspath;
21
}
0 commit comments