chore: rewrite loadprg & fix some issues

This commit is contained in:
binekrasik
2026-05-22 23:27:04 +02:00
parent 4777552106
commit 3798a53395
6 changed files with 87 additions and 25 deletions

View File

@@ -32,7 +32,7 @@ export class Edit extends Program {
let filePath = resolvePath(args[1])
let file = await Item.open(filePath, '')
let fileExists = await file.Exists()
let lines = this.normalizeLines(file.ReadData())
let lines = this.normalizeLines(file.GetData())
let dirty = false
let cursorLine = 0
@@ -93,7 +93,7 @@ export class Edit extends Program {
const resolved = resolvePath(path)
const nextFile = await Item.open(resolved, '')
const exists = await nextFile.Exists()
const content = nextFile.ReadData()
const content = nextFile.GetData()
filePath = resolved
file = nextFile