Forward close params to quit

This commit is contained in:
Guangxiong Lin 2025-01-10 00:03:11 +08:00
parent 1e0c5ff61c
commit db5823681f
No known key found for this signature in database
GPG key ID: F38740D6916EF58F

View file

@ -3,10 +3,10 @@ use yazi_shared::event::CmdCow;
use crate::{manager::Manager, tasks::Tasks}; use crate::{manager::Manager, tasks::Tasks};
impl Manager { impl Manager {
pub fn close(&mut self, _: CmdCow, tasks: &Tasks) { pub fn close(&mut self, c: CmdCow, tasks: &Tasks) {
if self.tabs.len() > 1 { if self.tabs.len() > 1 {
return self.tabs.close(self.tabs.cursor); return self.tabs.close(self.tabs.cursor);
} }
self.quit((), tasks); self.quit(c, tasks);
} }
} }