diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Store.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Store.zig b/src/Store.zig index 5e47d695..856a7fc1 100644 --- a/src/Store.zig +++ b/src/Store.zig @@ -498,6 +498,10 @@ pub fn keep(s: *Store, p: *Pardes, id: usize) ?Kept { const pane = p.panes[id] orelse return null; if (pane.fs.unannounced or pane.query != null) return null; if (pane.file) |f| if (f.output) |o| if (o.from == .preview) return null; + // An output pane's record holds its text whole (base64): one past the + // bound is known before a dump of it is made, which for a 256 MiB + // +Pager held the session up for seconds only to be thrown away. + if (pane.file) |f| if (f.output != null and f.content.len > max_record) return null; const gpa = p.recentGpa(); const arena = p.scratch.allocator(); var dp = dump.dumpPane(p, arena, pane) catch return null; |
