diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-23 10:56:33 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-23 17:10:58 -0300 |
| commit | a0d367b6c54ff29737662fd7cf5a78d4d183cb20 (patch) | |
| tree | 295dfa438f54b72a907d2c847784d5b5982fca9e /src/Output.zig | |
| parent | 7b743fcc7d568f13512a59089c5214bb6fa3282f (diff) | |
| download | pardes-a0d367b6c54ff29737662fd7cf5a78d4d183cb20.tar.gz pardes-a0d367b6c54ff29737662fd7cf5a78d4d183cb20.zip | |
Audit (core, modal): goto/insert/select tables, edit through sam.Op and sam.apply, Turn.bump and awaitPast, dead helpers out
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/Output.zig')
| -rw-r--r-- | src/Output.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Output.zig b/src/Output.zig index 9ed33ebe..3fc08d9a 100644 --- a/src/Output.zig +++ b/src/Output.zig @@ -774,7 +774,7 @@ pub fn openUnsaved(p: *Pardes, id: usize, content: []u8) void { const own = if (pane.file) |f| panes.Dir.ofName(f.path) else pane.cwdSlice(); // Its directory gone (or never there, a name not yet saved): the list // goes in the session's, where a look from it can still resolve. - const dir = if (comptime pardes.hosted) (if (pardes.filesystem.localPath(own)) |local| (if (exec.isDirectory(local)) own else p.sessionDir()) else own) else own; + const dir = if (comptime pardes.hosted) (if (pardes.filesystem.localPath(own)) |local| (if (exec.kindOf(local) == .directory) own else p.sessionDir()) else own) else own; const free = p.freeSlot() orelse return p.gpa.free(content); _ = open(p, free, dir, .unsaved, "", content) catch return; exec.placeNew(p, id, id, free, .doc); |
