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:
1 parent
e8144002a8
commit
6bff3f3533
1 file changed
+1
-1
@@ -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