Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
git_ui: Only register conflict addon for full mode editors (#30049)
Finn Evers902931fdfcd8
diff --git a/crates/git_ui/src/conflict_view.rs b/crates/git_ui/src/conflict_view.rsindex b09bf101897..5a0b00f4530 100644--- a/crates/git_ui/src/conflict_view.rs+++ b/crates/git_ui/src/conflict_view.rs@@ -46,8 +46,9 @@ impl editor::Addon for ConflictAddon {pub fn register_editor(editor: &mut Editor, buffer: Entity<MultiBuffer>, cx: &mut Context<Editor>) {// Only show conflict UI for singletons and in the project diff.- if !editor.buffer().read(cx).is_singleton()- && !editor.buffer().read(cx).all_diff_hunks_expanded()+ if !editor.mode().is_full()+ || (!editor.buffer().read(cx).is_singleton()+ && !editor.buffer().read(cx).all_diff_hunks_expanded()){return;}