fix tag toggling

This commit is contained in:
rabite 2020-05-23 14:17:29 +02:00
parent f58982d96d
commit 16948dcec4
1 changed files with 8 additions and 0 deletions

View File

@ -587,7 +587,15 @@ impl ListView<Files>
fn toggle_tag(&mut self) -> HResult<()> {
self.selected_file_mut().toggle_tag()?;
let oldpos = self.get_selection();
self.move_down();
let newpos = self.get_selection();
if newpos > oldpos {
self.update_selected_file(oldpos);
}
Ok(())
}