Use FileLibrary.load() method to make sure tracking of current buffer content works

This commit is contained in:
Jonatan Heyman 2024-10-29 15:30:10 +01:00
parent d12f6577bf
commit f6b086b7e6

View File

@ -67,7 +67,7 @@ export class FileLibrary {
async load(path) {
if (this.files[path]) {
return this.files[path].read()
return this.files[path].load()
}
const fullPath = fs.realpathSync(join(this.basePath, path))
this.files[path] = new NoteBuffer({fullPath, library:this})