mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 09:28:21 +00:00
fix wrong hunk highlighting after arrow-down at end of diff (closes #249)
This commit is contained in:
parent
aa1bf4fded
commit
40e9194b5d
1 changed files with 3 additions and 2 deletions
|
|
@ -215,8 +215,9 @@ impl DiffComponent {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
self.selection =
|
let new_start = cmp::min(max, new_start);
|
||||||
Selection::Single(cmp::min(max, new_start));
|
|
||||||
|
self.selection = Selection::Single(new_start);
|
||||||
|
|
||||||
self.selected_hunk =
|
self.selected_hunk =
|
||||||
Self::find_selected_hunk(diff, new_start)?;
|
Self::find_selected_hunk(diff, new_start)?;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue