We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7dcb58 commit 4f9979aCopy full SHA for 4f9979a
services/gitdiff/gitdiff.go
@@ -154,7 +154,7 @@ func (d *DiffLine) GetBlobExcerptQuery() string {
154
155
// GetExpandDirection gets DiffLineExpandDirection
156
func (d *DiffLine) GetExpandDirection() DiffLineExpandDirection {
157
- if d.Type != DiffLineSection || d.SectionInfo == nil || d.SectionInfo.RightIdx-d.SectionInfo.LastRightIdx <= 1 {
+ if d.Type != DiffLineSection || d.SectionInfo == nil || d.SectionInfo.RightIdx-d.SectionInfo.LastRightIdx <= 1 || d.SectionInfo.LeftIdx-d.SectionInfo.LastLeftIdx <= 1 {
158
return DiffLineExpandNone
159
}
160
if d.SectionInfo.LastLeftIdx <= 0 && d.SectionInfo.LastRightIdx <= 0 {
0 commit comments