Skip to content

Commit

Permalink
Keep all hunks expanded in proposed change editor (#18598)
Browse files Browse the repository at this point in the history
Also, fix visual bug when pressing escape with a non-empty selection in
a deleted text block.

Release Notes:

- N/A

Co-authored-by: Antonio <[email protected]>
  • Loading branch information
maxbrunsfeld and as-cii authored Oct 1, 2024
1 parent 9b148f3 commit 7dcb0de
Show file tree
Hide file tree
Showing 3 changed files with 259 additions and 190 deletions.
2 changes: 1 addition & 1 deletion crates/editor/src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3059,7 +3059,7 @@ impl Editor {
}

pub fn cancel(&mut self, _: &Cancel, cx: &mut ViewContext<Self>) {
if self.clear_clicked_diff_hunks(cx) {
if self.clear_expanded_diff_hunks(cx) {
cx.notify();
return;
}
Expand Down
Loading

0 comments on commit 7dcb0de

Please sign in to comment.