Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

git_ui: Disable CommitView diff hunk controls (#58514)

Sathwik Chirivelli3d4d87968150
diff --git a/crates/git_ui/src/commit_view.rs b/crates/git_ui/src/commit_view.rs
index b24c0a5a380..f0ab75dd2e2 100644
--- a/crates/git_ui/src/commit_view.rs
+++ b/crates/git_ui/src/commit_view.rs
@@ -274,6 +274,7 @@ impl CommitView {
window,
cx,
);
+ editor.disable_diff_hunk_controls(cx);
editor.rhs_editor().update(cx, |editor, cx| {
editor.set_show_bookmarks(false, cx);
@@ -1189,6 +1190,7 @@ impl Item for CommitView {
window,
cx,
);
+ editor.disable_diff_hunk_controls(cx);
editor.rhs_editor().update(cx, |editor, cx| {
editor.set_show_bookmarks(false, cx);
editor.set_show_breakpoints(false, cx);