summaryrefslogtreecommitdiff
path: root/core/Places.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/Places.zig')
-rw-r--r--core/Places.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/Places.zig b/core/Places.zig
index 1416dbd3..9ffbff88 100644
--- a/core/Places.zig
+++ b/core/Places.zig
@@ -890,5 +890,8 @@ test "a session's places loaded from its dump find what an edit makes as the ses
pn.places.fill(p, pn, 0, frame_steps);
try std.testing.expectEqual(@as(usize, 3), pn.places.hits.items.len);
}
+ // An edit stamps the text with the wall clock's second (File.edit's
+ // mtime): the two cores' edits, a moment apart, can fall in two.
+ b.panes[b.view().active].?.file.?.mtime = a.panes[a.view().active].?.file.?.mtime;
try std.testing.expectEqual(pardes.walk.digest(Pardes, a), pardes.walk.digest(Pardes, b));
}