diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-29 13:41:07 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:16 -0300 |
| commit | 066f25a8cee7f5c63e991a9857667c346c6b75df (patch) | |
| tree | d629528aee40b993f989693ca456005bac71aef3 /src/tagline.zig | |
| parent | 164da9fc0a7ab3c7ed39ea0a2dd6bbff3c36cdaf (diff) | |
| download | pardes-066f25a8cee7f5c63e991a9857667c346c6b75df.tar.gz pardes-066f25a8cee7f5c63e991a9857667c346c6b75df.zip | |
A buffer whose file was deleted on disk is dirty, and Del asks first
A file deleted under an open buffer left dirty 0 and let Del, Exit and the rest throw the only copy of its text away unasked. It now counts as dirty, as acme's does, and the refusals ask about it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/tagline.zig')
| -rw-r--r-- | src/tagline.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tagline.zig b/src/tagline.zig index 5f95b2a0..df093925 100644 --- a/src/tagline.zig +++ b/src/tagline.zig @@ -30,7 +30,7 @@ const dirty_marker = " *"; /// A file with changes it has not saved. pub fn dirty(pane: *const panes.Pane) bool { const f = pane.file orelse return false; - return panes.Output.fileTraits(f.output).saves and f.revision != f.saved_revision; + return panes.Output.fileTraits(f.output).saves and (f.revision != f.saved_revision or f.disk_gone); } pub const legacy_pane_tail = " Del"; pub const legacy_file_pane_tail = " Save Del"; |
