buffer_diff: Fix git gutter incorrectly showing for ignored files (#43776)
Closes #43734 Closes #43698 Release Notes: - Fixed git gutter incorrectly showing up for ignored files.
This commit is contained in:
@@ -1235,7 +1235,7 @@ impl DiffHunk {
|
||||
pub fn is_created_file(&self) -> bool {
|
||||
self.diff_base_byte_range == (0..0)
|
||||
&& self.buffer_range.start.is_min()
|
||||
&& self.buffer_range.end.is_min()
|
||||
&& self.buffer_range.end.is_max()
|
||||
}
|
||||
|
||||
pub fn status(&self) -> DiffHunkStatus {
|
||||
|
||||
Reference in New Issue
Block a user