aboutsummaryrefslogtreecommitdiff
path: root/src/pane
diff options
context:
space:
mode:
Diffstat (limited to 'src/pane')
-rw-r--r--src/pane/terminal.rs5
1 files changed, 1 insertions, 4 deletions
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
}