File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 ) ,
You can’t perform that action at this time.
0 commit comments