From 952729ee03e0939d7a9d893f87f24179cf0eb7cb Mon Sep 17 00:00:00 2001 From: akbash Date: Thu, 13 Aug 2026 03:46:52 +0300 Subject: fix: preserve logical lines in scrollback editor (#2735) refs #2733 Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com> Co-authored-by: Can Celik --- src/pane/terminal.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/pane') diff --git a/src/pane/terminal.rs b/src/pane/terminal.rs index 3524df21..b853f0b0 100644 --- a/src/pane/terminal.rs +++ b/src/pane/terminal.rs @@ -427,10 +427,6 @@ impl PaneTerminal { self.ghostty.detection_text() } - pub fn recent_text(&self, lines: usize) -> String { - self.ghostty.recent_text(lines) - } - pub(crate) fn recent_text_snapshot(&self, lines: usize) -> TerminalReadSnapshot { self.ghostty.recent_text_snapshot(lines) } @@ -1959,6 +1955,7 @@ impl GhosttyPaneTerminal { .unwrap_or_default() } + #[cfg(test)] pub fn recent_text(&self, lines: usize) -> String { self.recent_text_snapshot(lines).text } -- cgit v1.2.3