1
0
mirror of https://github.com/bobwen-dev/hunter synced 2025-04-12 00:55:41 +02:00

fix tag toggling

This commit is contained in:
rabite 2020-05-23 14:17:29 +02:00
parent f58982d96d
commit 16948dcec4

View File

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