From 41e61a10b40fedb01015ba6293c1853b06148b24 Mon Sep 17 00:00:00 2001 From: Mattias Eriksson Date: Thu, 18 Jan 2024 10:15:46 +0100 Subject: [PATCH] Correct comments --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 9fbd590..4091e6f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1103,7 +1103,7 @@ impl Application for App { // Remove item tab_model.remove(entity); - // If that was the last tab, close window + // If that was the last tab, close current pane if tab_model.iter().next().is_none() { if let Some((_state, sibling)) = self.pane_model.panes.close(self.pane_model.focus) @@ -1111,6 +1111,7 @@ impl Application for App { self.terminal_ids.remove(&self.pane_model.focus); self.pane_model.focus = sibling; } else { + //Last pane, closing window return window::close(window::Id::MAIN); } }