summaryrefslogtreecommitdiff
path: root/core/dump.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/dump.zig')
-rw-r--r--core/dump.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/dump.zig b/core/dump.zig
index 0cefa157..389d948f 100644
--- a/core/dump.zig
+++ b/core/dump.zig
@@ -1010,6 +1010,10 @@ pub fn plainHere(p: *Pardes, id: usize, old: *Kind.Slot, ops: *const Kind.Ops) !
s.selection = try p.gpa.dupe(u8, old.selection);
// (and its place: the open's own `where` is of a block not yet the session's)
const kept = .{ old.next_tick, old.views, old.focused, old.state, old.where_text };
+ // The count of writes outside the copy stays the session's, as dumped:
+ // this open is the join's, no step the session took (Kind.reopen).
+ const outside = p.outside;
+ defer p.outside = outside;
if (!Kind.reopen(p, id, s, old.file)) return error.KindRefused;
// Its block the session's, byte for byte (its record), never through
// the kind's load, which may tidy it.