When traversing SES_DELETE in uniHunks, beforeIdx suddenly decreases #19
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-cubicdaiya/dtl#19
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello, I am traversing the uniHunks in dtl and attempting to print out each element (
type,beforeIdx,afterIdx).However, I noticed that when traversing consecutive
SES_DELETEelements, the value ofbeforeIdxwas reduced from15321to1452:Additionally, I tested with other diff tools and found that there is no text change in line
1452.This is my code:
This is my test files:
new.txt
old.txt
By the way, the result in
getSes().getSequence()is correct, It seems that there is some problem withincomposeUnifiedHunks.