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:
parent
f58982d96d
commit
16948dcec4
@ -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(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user