From 38e2c7aa66a999a3e1064cf12dea03a48f774927 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Tue, 11 Nov 2025 14:56:04 +0100 Subject: [PATCH] editor: Hide file blame on editor cancel (ESC) (#42436) Release Notes: - N/A *or* Added/Fixed/Improved ... --- crates/editor/src/editor.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index 223dbb7765..f7eb309fd1 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -4076,17 +4076,24 @@ impl Editor { self.selection_mark_mode = false; self.selection_drag_state = SelectionDragState::None; + if self.dismiss_menus_and_popups(true, window, cx) { + cx.notify(); + return; + } if self.clear_expanded_diff_hunks(cx) { cx.notify(); return; } - if self.dismiss_menus_and_popups(true, window, cx) { + if self.show_git_blame_gutter { + self.show_git_blame_gutter = false; + cx.notify(); return; } if self.mode.is_full() && self.change_selections(Default::default(), window, cx, |s| s.try_cancel()) { + cx.notify(); return; }