Merge pull request #1807 from cryptocode/cc-scrollback_include_active

scrollback: Include active area when writing scrollback to file
This commit is contained in:
Mitchell Hashimoto
2024-05-29 08:01:45 -07:00
committed by GitHub

View File

@ -3166,7 +3166,7 @@ pub fn performBindingAction(self: *Surface, action: input.Binding.Action) !bool
// 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.
const pages = &self.io.terminal.screen.pages; const pages = &self.io.terminal.screen.pages;
if (pages.getBottomRight(.history)) |br| { if (pages.getBottomRight(.active)) |br| {
const tl = pages.getTopLeft(.history); const tl = pages.getTopLeft(.history);
try self.io.terminal.screen.dumpString( try self.io.terminal.screen.dumpString(
file.writer(), file.writer(),