forked from helix-editor/helix
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is an experiment with some of the ideas in issue 5362. Just trying it out to see how often I use it and if I find it very useful.
- Loading branch information
1 parent
cd20762
commit 9fd4fcf
Showing
3 changed files
with
83 additions
and
5 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -289,4 +289,8 @@ impl Diff<'_> { | |
} | ||
} | ||
} | ||
|
||
pub fn hunks(&self) -> impl Iterator<Item = &Hunk> { | ||
self.diff.hunks.iter() | ||
} | ||
} |