Fix selecting broken symlink

pull/157/head v0.9.1
Arijit Basu 3 years ago committed by Arijit Basu
parent 8e98da5004
commit 7eabd3fb7d

@ -2424,8 +2424,9 @@ impl App {
}
fn refresh_selection(mut self) -> Result<Self> {
// Should be able to select broken symlink
self.selection
.retain(|n| PathBuf::from(&n.absolute_path).exists());
.retain(|n| PathBuf::from(&n.absolute_path).symlink_metadata().is_ok());
Ok(self)
}

Loading…
Cancel
Save