aboutsummaryrefslogtreecommitdiff
path: root/src/workspace.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/workspace.rs')
-rw-r--r--src/workspace.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/workspace.rs b/src/workspace.rs
index 47fa9cf7..70ff97f5 100644
--- a/src/workspace.rs
+++ b/src/workspace.rs
@@ -13,7 +13,7 @@ use crate::layout::PaneId;
#[cfg(test)]
use crate::layout::TileLayout;
use crate::pane::PaneState;
-use crate::terminal::{TerminalId, TerminalRuntime, TerminalState};
+use crate::terminal::{TerminalId, TerminalRuntime, TerminalRuntimeRegistry, TerminalState};
mod aggregate;
mod git;
@@ -536,7 +536,7 @@ impl Workspace {
pub fn resolved_identity_cwd_from(
&self,
terminals: &HashMap<TerminalId, TerminalState>,
- terminal_runtimes: &HashMap<TerminalId, TerminalRuntime>,
+ terminal_runtimes: &TerminalRuntimeRegistry,
) -> Option<PathBuf> {
self.tabs
.first()
@@ -557,7 +557,7 @@ impl Workspace {
pub fn display_name_from(
&self,
terminals: &HashMap<TerminalId, TerminalState>,
- terminal_runtimes: &HashMap<TerminalId, TerminalRuntime>,
+ terminal_runtimes: &TerminalRuntimeRegistry,
) -> String {
if let Some(name) = &self.custom_name {
return name.clone();
@@ -765,7 +765,7 @@ mod tests {
terminal_id.clone(),
TerminalState::new(terminal_id, PathBuf::from("/herdr-test/pion")),
);
- let terminal_runtimes = HashMap::new();
+ let terminal_runtimes = TerminalRuntimeRegistry::new();
assert_eq!(ws.display_name_from(&terminals, &terminal_runtimes), "pion");
assert_eq!(