aboutsummaryrefslogtreecommitdiff
path: root/src/pane
diff options
context:
space:
mode:
Diffstat (limited to 'src/pane')
-rw-r--r--src/pane/state.rs4
-rw-r--r--src/pane/terminal.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/pane/state.rs b/src/pane/state.rs
index aac80920..590f2025 100644
--- a/src/pane/state.rs
+++ b/src/pane/state.rs
@@ -104,9 +104,7 @@ impl PaneState {
source: &str,
agent_label: &str,
) -> Option<EffectiveStateChange> {
- let Some(current_agent_label) = self.effective_agent_label() else {
- return None;
- };
+ let current_agent_label = self.effective_agent_label()?;
if current_agent_label != agent_label {
return None;
}
diff --git a/src/pane/terminal.rs b/src/pane/terminal.rs
index 80f83915..ad040ba2 100644
--- a/src/pane/terminal.rs
+++ b/src/pane/terminal.rs
@@ -712,10 +712,12 @@ impl GhosttyPaneTerminal {
}
}
+type VisibleHyperlinks = Vec<((u16, u16), String, String)>;
+
fn ghostty_visible_hyperlinks(
core: &mut GhosttyPaneCore,
area: Rect,
-) -> Result<Vec<((u16, u16), String, String)>, crate::ghostty::Error> {
+) -> Result<VisibleHyperlinks, crate::ghostty::Error> {
let GhosttyPaneCore {
terminal,
render_state,