mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
Forward close params to quit
This commit is contained in:
parent
1e0c5ff61c
commit
db5823681f
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue