Revert "Rework hunk controls (#24814)" (#25174)

This reverts commit a6a8d79d86.

Closes #ISSUE

Release Notes:

- N/A *or* Added/Fixed/Improved ...
This commit is contained in:
Cole Miller 2025-02-19 11:48:35 -05:00 committed by GitHub
parent d17c6b392e
commit c34b14ae7d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 63 additions and 68 deletions

View file

@ -7056,10 +7056,10 @@ impl Editor {
cx: &mut Context<Self>,
) {
let selections = self.selections.all(cx).into_iter().map(|s| s.range());
self.discard_hunks_in_ranges(selections, window, cx);
self.revert_hunks_in_ranges(selections, window, cx);
}
fn discard_hunks_in_ranges(
fn revert_hunks_in_ranges(
&mut self,
ranges: impl Iterator<Item = Range<Point>>,
window: &mut Window,