mirror of https://github.com/bobwen-dev/hunter
fix tag toggling
This commit is contained in:
parent
f58982d96d
commit
16948dcec4
|
@ -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(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue