mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00
Merge pull request #1807 from cryptocode/cc-scrollback_include_active
scrollback: Include active area when writing scrollback to file
This commit is contained in:
@ -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(),
|
||||||
|
Reference in New Issue
Block a user