mirror of
https://github.com/bobwen-dev/hunter
synced 2025-04-12 00:55:41 +02:00
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> {
|
pub fn take_left_files(&mut self) -> HResult<Files> {
|
||||||
let mut w = self.left_widget_mut()?;
|
let mut w = self.left_widget_mut()?;
|
||||||
w.content.len = 0;
|
|
||||||
//w.buffer.clear();
|
//w.buffer.clear();
|
||||||
let files = std::mem::take(&mut w.content);
|
let files = std::mem::take(&mut w.content);
|
||||||
|
w.content.len = 0;
|
||||||
Ok(files)
|
Ok(files)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user