Reload git index on file events to catch new contents
This commit is contained in:
parent
3f4be5521c
commit
771215d254
4 changed files with 17 additions and 8 deletions
|
@ -630,9 +630,7 @@ impl EditorElement {
|
|||
let new_hunk = get_hunk(diff_layout.buffer_row, &layout.diff_hunks);
|
||||
|
||||
let (is_ending, is_starting) = match (diff_layout.last_diff, new_hunk) {
|
||||
(Some(old_hunk), Some(new_hunk)) if new_hunk == old_hunk => {
|
||||
(false, false)
|
||||
}
|
||||
(Some(old_hunk), Some(new_hunk)) if new_hunk == old_hunk => (false, false),
|
||||
(a, b) => (a.is_some(), b.is_some()),
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue