Reload git index on file events to catch new contents

This commit is contained in:
Julia
2022-10-06 12:01:21 -04:00
parent 3f4be5521c
commit 771215d254
4 changed files with 17 additions and 8 deletions
+1 -3
View File
@@ -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()),
};