From 6e9c6c568465b12d9be13e35f56fa5fef0050433 Mon Sep 17 00:00:00 2001 From: Umesh Yadav <23421535+imumesh18@users.noreply.github.com> Date: Tue, 1 Jul 2025 17:35:08 +0530 Subject: [PATCH] git_ui: Fix list in git commit message (#33409) Follow up: #32114 Closes #33274 Use the new support for language-specific rewrap_prefixes added in https://github.com/zed-industries/zed/pull/33702. Release Notes: - Fix git commit message line break getting stripped after committing. --------- Signed-off-by: Umesh Yadav --- crates/languages/src/gitcommit/config.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/languages/src/gitcommit/config.toml b/crates/languages/src/gitcommit/config.toml index ae4b836ed66dc7558cf7b033e555dd2dba3b309c..c2421ce00613e5848aacab5d1230ab839c8b1388 100644 --- a/crates/languages/src/gitcommit/config.toml +++ b/crates/languages/src/gitcommit/config.toml @@ -16,3 +16,9 @@ brackets = [ { start = "{", end = "}", close = true, newline = false }, { start = "[", end = "]", close = true, newline = false }, ] +rewrap_prefixes = [ + "[-*+]\\s+", + "\\d+\\.\\s+", + ">\\s*", + "[-*+]\\s+\\[[\\sx]\\]\\s+" +]