1
0
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:
rabite 2020-02-05 22:29:43 +01:00
parent a6c829e143
commit 353f6369c8

View File

@ -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)
}