summaryrefslogtreecommitdiff
path: root/src/dump.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/dump.zig')
-rw-r--r--src/dump.zig5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dump.zig b/src/dump.zig
index 742a9574..102b10d0 100644
--- a/src/dump.zig
+++ b/src/dump.zig
@@ -901,7 +901,8 @@ pub fn plainHere(p: *Pardes, id: usize, old: *Kind.Slot, ops: *const Kind.Ops) !
}
s.path = try p.gpa.dupe(u8, old.path);
s.selection = try p.gpa.dupe(u8, old.selection);
- const kept = .{ old.next_tick, old.views, old.focused, old.state };
+ // (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 };
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.
@@ -909,7 +910,7 @@ pub fn plainHere(p: *Pardes, id: usize, old: *Kind.Slot, ops: *const Kind.Ops) !
const record = old.record orelse return error.KindRefused;
if (block.len != record.len) return error.KindRefused;
@memcpy(block, record);
- s.next_tick, s.views, s.focused, s.state = kept;
+ s.next_tick, s.views, s.focused, s.state, s.where_text = kept;
const gpa = old.gpa;
old.free();
gpa.destroy(old);