From db5823681faff0e6a3efdcb0c123410e4fe44cc9 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Fri, 10 Jan 2025 00:03:11 +0800 Subject: [PATCH] Forward close params to quit --- yazi-core/src/manager/commands/close.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } }