diff options
| author | Daniel Jankowski <daniel.jankowski@rub.de> | 2025-06-09 13:41:04 +0200 |
|---|---|---|
| committer | Daniel Jankowski <daniel.jankowski@rub.de> | 2025-06-09 13:41:04 +0200 |
| commit | 52edf720945ea9e650fdd69d4ee226979b31a907 (patch) | |
| tree | 4f33fee447f865407cc572c19f35828cb6cd9aa4 /src/widgets/command.rs | |
| parent | chore(deps): update to rust 1.87.0 (diff) | |
| download | sl0pstatus-52edf720945ea9e650fdd69d4ee226979b31a907.tar.gz sl0pstatus-52edf720945ea9e650fdd69d4ee226979b31a907.tar.xz sl0pstatus-52edf720945ea9e650fdd69d4ee226979b31a907.zip | |
chore: remove test code
Diffstat (limited to 'src/widgets/command.rs')
| -rw-r--r-- | src/widgets/command.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/widgets/command.rs b/src/widgets/command.rs index 40ced99..c5a902f 100644 --- a/src/widgets/command.rs +++ b/src/widgets/command.rs @@ -64,20 +64,6 @@ impl CommandWidget { impl Widget for CommandWidget { fn process(&self, name: &str, state: &ZellijState) -> String { - let active_tab = state.tabs.iter().find(|t| t.active); - let active_tab = active_tab.as_ref().unwrap(); - let active_pane = state - .panes - .panes - .get(&active_tab.position) - .cloned() - .unwrap() - .into_iter() - .find(|p| p.is_focused) - .unwrap(); - - tracing::debug!("{:?}", active_pane.encode_to_kdl()); - let command_config = match self.config.get(name) { Some(cc) => cc, None => { |
