From 179fb21778c72a5e7b6b16f195f5681fc57c9ace Mon Sep 17 00:00:00 2001 From: Nomad <60601099+canntws@users.noreply.github.com> Date: Thu, 2 Oct 2025 21:44:18 +0700 Subject: [PATCH] git_ui: Expand commit editor hitbox by setting min_lines = max_lines (#38587) Closes #26527 The commit editor hitbox was too small since min_lines < max_lines, making it grow only when typing more lines. Release Notes: - N/A https://github.com/user-attachments/assets/e026d688-594f-40b6-a971-6c92e3fdb496 --- crates/git_ui/src/git_panel.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rs index 8f9320b2173c8cf9de3e670cdae629f0c90cc3e2..7914e488a96f730766cd744faa10bc95b403c251 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,