Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
git_ui: Preserve line breaks in commit message view (#66608)
Michal Matczuke40e600719ea
diff --git a/crates/git_ui/src/commit_view.rs b/crates/git_ui/src/commit_view.rsindex 42f733aae98..1b79b38e86a 100644--- a/crates/git_ui/src/commit_view.rs+++ b/crates/git_ui/src/commit_view.rs@@ -22,7 +22,7 @@ use language::{Buffer, Capability, DiskState, File, LanguageRegistry, LineEnding, OffsetRangeExt as _,ReplicaId, Rope, TextBuffer,};-use markdown::{Markdown, MarkdownElement};+use markdown::{Markdown, MarkdownElement, MarkdownStyle};use multi_buffer::PathKey;use project::{Project, ProjectPath, WorktreeId,@@ -878,7 +878,10 @@ impl CommitView {return None;}- let markdown_style = hover_markdown_style(window, cx);+ let markdown_style = MarkdownStyle {+ soft_break_as_hard_break: true,+ ..hover_markdown_style(window, cx)+ };let is_expanded = self.message_expanded;