mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-17 01:06:08 +03:00
core: write scrollback file works again
This commit is contained in:
@ -3230,11 +3230,14 @@ pub fn performBindingAction(self: *Surface, action: input.Binding.Action) !bool
|
|||||||
// We only dump history if we have history. We still keep
|
// We only dump history if we have history. We still keep
|
||||||
// the file and write the empty file to the pty so that this
|
// the file and write the empty file to the pty so that this
|
||||||
// command always works on the primary screen.
|
// command always works on the primary screen.
|
||||||
// TODO(paged-terminal): unwrap
|
const pages = &self.io.terminal.screen.pages;
|
||||||
try self.io.terminal.screen.dumpString(
|
if (pages.getBottomRight(.history)) |br| {
|
||||||
file.writer(),
|
const tl = pages.getTopLeft(.history);
|
||||||
.{ .history = .{} },
|
try self.io.terminal.screen.dumpString(
|
||||||
);
|
file.writer(),
|
||||||
|
.{ .tl = tl, .br = br, .unwrap = true },
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the final path
|
// Get the final path
|
||||||
|
Reference in New Issue
Block a user