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: Expand commit editor hitbox by setting min_lines = max_lines (#38587)

Nomad179fb21778c7
diff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rs
index 8f9320b2173..7914e488a96 100644
--- a/crates/git_ui/src/git_panel.rs
+++ b/crates/git_ui/src/git_panel.rs
@@ -347,7 +347,7 @@ pub(crate) fn commit_message_editor(
let max_lines = if in_panel { MAX_PANEL_EDITOR_LINES } else { 18 };
let mut commit_editor = Editor::new(
EditorMode::AutoHeight {
- min_lines: 1,
+ min_lines: max_lines,
max_lines: Some(max_lines),
},
buffer,