mirror of
https://github.com/Dummi26/tuifile.git
synced 2025-03-10 11:43:53 +01:00
copying now targets current_dir instead of the current entry
This commit is contained in:
parent
9d839c8f42
commit
890dd9846b
@ -727,11 +727,7 @@ impl TuiFile {
|
||||
}
|
||||
// C -> Copy
|
||||
(Focus::Files, KeyCode::Char('c')) => {
|
||||
if let Some(e) = self.dir_content.get(self.current_index) {
|
||||
if let DirContentType::Dir { .. } = e.more {
|
||||
return Ok(AppCmd::CopyTo(e.path.clone()));
|
||||
}
|
||||
}
|
||||
return Ok(AppCmd::CopyTo(self.current_dir.clone()));
|
||||
}
|
||||
// R -> Remove
|
||||
(Focus::Files, KeyCode::Char('r')) => {
|
||||
|
Loading…
Reference in New Issue
Block a user