diff options
author | rabite <rabite@posteo.de> | 2019-04-20 17:03:25 +0200 |
---|---|---|
committer | rabite <rabite@posteo.de> | 2019-04-20 17:04:33 +0200 |
commit | 17603ca15f3d76bd661373e116d116449349de1a (patch) | |
tree | 53b0a4b7252a065a1f4a7a2ea94b3597c0124f75 /src/file_browser.rs | |
parent | bc273a5472c46d6083e15541cc55e6b03b9c394f (diff) |
fix missing metadata in footer
Diffstat (limited to 'src/file_browser.rs')
-rw-r--r-- | src/file_browser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_browser.rs b/src/file_browser.rs index b0fe845..1574522 100644 --- a/src/file_browser.rs +++ b/src/file_browser.rs @@ -907,7 +907,7 @@ impl FileBrowser { let xsize = self.get_coordinates()?.xsize(); let ypos = self.get_coordinates()?.position().y(); let pos = self.main_widget()?.get_selection(); - let file = self.main_widget()?.content.files.get(pos)?; + let file = self.main_widget()?.content.get_files().get(pos).cloned()?; let permissions = file.pretty_print_permissions().unwrap_or("NOPERMS".into()); let user = file.pretty_user().unwrap_or("NOUSER".into()); |