diff options
Diffstat (limited to 'core/builtins.zig')
| -rw-r--r-- | core/builtins.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/builtins.zig b/core/builtins.zig index e6d22c17..fbb82fc3 100644 --- a/core/builtins.zig +++ b/core/builtins.zig @@ -358,7 +358,7 @@ pub fn warnModifiedIn(c: Ctx, asking: Pane.Discarding, which: Asked) bool { // Nor is a buffer never edited at all: its first edit is what keeps // the text it had (File.zig), so with none there is nothing to lose. const saved = f.saved_hash orelse continue; - if (std.hash.Wyhash.hash(0, f.content) == saved) continue; + if (panes.File.fileHash(&f) == saved) continue; } if (pane.discard_warned) |w| if (w.revision == f.revision and w.by == asking) continue; pane.discard_warned = .{ .revision = f.revision, .by = asking }; |
