diff options
| author | hachem <im@hachem.wtf> | 2026-10-11 02:16:56 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-10-11 02:16:56 +0200 |
| commit | 59794d0b999e544a94230d9562bf2b99d2ed74c7 (patch) | |
| tree | a001db5b5ebb9453d6a0e96f56b36e6ec3ccdd51 /gils/ed.rv | |
| parent | 88750ed7132c08bcfb24e878c893ef7185c3c0b0 (diff) | |
feat: actual real vfs, not a faked one lmao
Diffstat (limited to 'gils/ed.rv')
| -rw-r--r-- | gils/ed.rv | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |
