-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
diff: rely on emptiness of unified hunk lines whether to append "afte…
…r" context show_context_after was set once when DiffHunk::Different received, and was never turned off. This means DiffHunk::Matching is not supposed to repeat. Under this condition, we can assume that removed/added lines exist if lines isn't empty.
- Loading branch information
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters