diff --git a/src/main.rs b/src/main.rs index d78bfb8..e62df91 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2793,7 +2793,9 @@ impl Application for App { } Message::TabCloseForce(entity) => { // Activate closest item - if let Some(position) = self.tab_model.position(entity) { + if self.tab_model.active() == entity + && let Some(position) = self.tab_model.position(entity) + { if position > 0 { self.tab_model.activate_position(position - 1); } else {