mirror of https://github.com/bobwen-dev/hunter
fixed bug in go_back
This commit is contained in:
parent
a6c829e143
commit
353f6369c8
|
@ -708,9 +708,9 @@ impl FileBrowser {
|
|||
|
||||
pub fn take_left_files(&mut self) -> HResult<Files> {
|
||||
let mut w = self.left_widget_mut()?;
|
||||
w.content.len = 0;
|
||||
//w.buffer.clear();
|
||||
let files = std::mem::take(&mut w.content);
|
||||
w.content.len = 0;
|
||||
Ok(files)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue