diff options
Diffstat (limited to 'core/ninep/pane.zig')
| -rw-r--r-- | core/ninep/pane.zig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/ninep/pane.zig b/core/ninep/pane.zig index e9e43095..b940bdd6 100644 --- a/core/ninep/pane.zig +++ b/core/ninep/pane.zig @@ -943,7 +943,9 @@ pub fn nameBuffer(p: *Pardes, id: usize, full: []const u8, preserve_tag: bool) ! look.invalidateLookHover(p, id); p.emit(.{ .watch = .{ .pane = @intCast(id), .on = false } }); events.noteLog(p, .rename, pane); - if (f.output == null and pardes.Pardes.recentKeeps(f.path)) p.recent.opened(p.recentGpa(), f.path); + // A name given: whether a file there is on disk is the disk's to say. + f.on_disk = f.output == null and pardes.Pardes.recentKeeps(f.path); + if (f.on_disk) p.recent.opened(p.recentGpa(), f.path); } /// Diagnostics go to the +Errors buffer of the pane's directory. |
