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.

Preserve trailing newline in `TerminalOutput::full_text` (#38061)

ImFeH2bc528411dfd9
diff --git a/crates/repl/src/outputs/plain.rs b/crates/repl/src/outputs/plain.rs
index 844bf6ed132..8a07e8748a5 100644
--- a/crates/repl/src/outputs/plain.rs
+++ b/crates/repl/src/outputs/plain.rs
@@ -231,8 +231,7 @@ impl TerminalOutput {
}
}
- // Trim any trailing newlines
- full_text.trim_end().to_string()
+ full_text
}
}