From 59794d0b999e544a94230d9562bf2b99d2ed74c7 Mon Sep 17 00:00:00 2001 From: hachem Date: Sun, 11 Oct 2026 02:16:56 +0200 Subject: feat: actual real vfs, not a faked one lmao --- gils/ed.rv | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gils/ed.rv') diff --git a/gils/ed.rv b/gils/ed.rv index 023ce15..b3d4bfc 100644 --- a/gils/ed.rv +++ b/gils/ed.rv @@ -211,7 +211,7 @@ fn ed_write(state, command) do const contents = ed_join(state.lines) - fs:store(path, contents) + vfs:store(path, contents) state.path = path state.dirty = :false puts("#{contents:len()}\n") @@ -267,7 +267,7 @@ fn ed_run_file(state, line, parsed) do const path = expand_path(rest:split(" ")[0]) - if fs:size(path) < 0 do + if vfs:size(path) < 0 do puts("?\n") return :nil end @@ -337,10 +337,10 @@ fn gils_ed(context) -> :hold do else "" if ed_state.path:len() > 0 do - const size = fs:size(ed_state.path) + const size = vfs:size(ed_state.path) if size > 0 do - const contents = fs:read_bytes(ed_state.path, 0, size) + const contents = vfs:read_bytes(ed_state.path, 0, size) const raw_lines = contents:split("\n") for index in 0..raw_lines:len() do -- cgit v1.3