summaryrefslogtreecommitdiff
path: root/core/dump.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/dump.zig')
-rw-r--r--core/dump.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/dump.zig b/core/dump.zig
index c0a84ffe..29aebce8 100644
--- a/core/dump.zig
+++ b/core/dump.zig
@@ -165,7 +165,7 @@ const Slim = struct {
f.history = ∅
// Not with the `Changes` layer's lines in it: the disk has the
// file's text, not the buffer.
- if (f.output == null and f.revision == f.saved_revision and f.read_only.len == 0 and filesystem.localPath(f.path) != null) f.content = &.{};
+ if (f.output == null and f.revision == f.saved_revision and f.layer.lines.len == 0 and filesystem.localPath(f.path) != null) f.content = &.{};
return s;
}