Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
mercury: Fix spurious newline removal (#46289)
Ben Kunkle6758732a4fc3
diff --git a/crates/edit_prediction/src/mercury.rs b/crates/edit_prediction/src/mercury.rsindex 8186fc5d8c6..ddf30976e42 100644--- a/crates/edit_prediction/src/mercury.rs+++ b/crates/edit_prediction/src/mercury.rs@@ -293,6 +293,7 @@ fn build_prompt(inputs: &ZetaPromptInput) -> String {fn push_delimited(prompt: &mut String, delimiters: Range<&str>, cb: impl FnOnce(&mut String)) {prompt.push_str(delimiters.start);cb(prompt);+ prompt.push('\n');prompt.push_str(delimiters.end);}