This commit is contained in:
Ryan Ragona
2025-04-26 16:25:17 -07:00
parent a4197ec97a
commit ee51ffc130
2 changed files with 1 additions and 5 deletions
+1 -4
View File
@@ -192,10 +192,7 @@ impl CreateCmd {
fn truncate_preview(p: &str) -> String {
// 1. Remove anything that is not printable (ASCII control chars, newlines
// etc.).
let cleaned: String = p
.chars()
.filter(|c| !c.is_control())
.collect();
let cleaned: String = p.chars().filter(|c| !c.is_control()).collect();
// 2. Truncate to 40 code-points.
let slice: String = cleaned.chars().take(40).collect();
-1
View File
@@ -92,7 +92,6 @@ pub enum SessionKind {
Repl,
}
/// Create the on-disk directory structure and write metadata + empty log files.
/// Create directory & empty log files. Does **not** write metadata; caller should write that
/// once the child process has actually been spawned so we can record its PID.