mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
db61951001
commit
e45f0375eb
1 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use std::{ffi::OsStr, io::{stdout, BufWriter, Write}, path::PathBuf};
|
||||
use std::{collections::BTreeMap, ffi::OsStr, io::{stdout, BufWriter, Write}, path::PathBuf};
|
||||
|
||||
use anyhow::{anyhow, bail, Result};
|
||||
use tokio::{fs::{self, OpenOptions}, io::{stdin, AsyncReadExt, AsyncWriteExt}};
|
||||
|
|
@ -23,7 +23,7 @@ impl Manager {
|
|||
}
|
||||
|
||||
let file = File::from(new.clone()).await?;
|
||||
emit!(Files(FilesOp::Replacing(file.parent().unwrap(), file.into_map())));
|
||||
emit!(Files(FilesOp::Replacing(file.parent().unwrap(), BTreeMap::from_iter([(old, file)]))));
|
||||
Ok(Self::_hover(Some(new)))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue