diff --git a/yazi-core/src/manager/commands/close.rs b/yazi-core/src/manager/commands/close.rs index 3662cc37..2354b47f 100644 --- a/yazi-core/src/manager/commands/close.rs +++ b/yazi-core/src/manager/commands/close.rs @@ -3,10 +3,10 @@ use yazi_shared::event::CmdCow; use crate::{manager::Manager, tasks::Tasks}; impl Manager { - pub fn close(&mut self, _: CmdCow, tasks: &Tasks) { + pub fn close(&mut self, c: CmdCow, tasks: &Tasks) { if self.tabs.len() > 1 { return self.tabs.close(self.tabs.cursor); } - self.quit((), tasks); + self.quit(c, tasks); } }