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> {
|
||||
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…
x
Reference in New Issue
Block a user