Skip to content

Commit ecc5d6f

Browse files
committed
Expand path
1 parent 2c0e297 commit ecc5d6f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

denops/ddx/buffer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export class DdxBuffer {
7474
this.#histories = [];
7575
this.#undoHistories = [];
7676

77-
if (!(await exists(path))) {
77+
if (!(await exists(abspath))) {
7878
this.#bytes = new Uint8Array();
7979
this.#origBufferSize = this.#bytes.length;
8080
this.#mtimeCache.set(path, null);

denops/ddx/ddx.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export class Ddx {
6868

6969
try {
7070
await this.#buffer.open(
71-
this.#options.path,
71+
await fn.expand(denops, this.#options.path) as string,
7272
await fn.getcwd(denops),
7373
Number(this.#options.offset),
7474
Number(this.#options.length),
@@ -85,7 +85,7 @@ export class Ddx {
8585
if (this.#options.anotherPath.length > 0) {
8686
try {
8787
await this.#anotherBuffer.open(
88-
this.#options.anotherPath,
88+
await fn.expand(denops, this.#options.anotherPath) as string,
8989
await fn.getcwd(denops),
9090
Number(this.#options.offset),
9191
Number(this.#options.length),

0 commit comments

Comments
 (0)