diff --git a/.config/jp/tools/src/fs/create_file.rs b/.config/jp/tools/src/fs/create_file.rs index ea9ced6f..89233409 100644 --- a/.config/jp/tools/src/fs/create_file.rs +++ b/.config/jp/tools/src/fs/create_file.rs @@ -41,8 +41,8 @@ pub(crate) async fn fs_create_file( let highlighted = Formatter::new() .format_terminal(&code_block) .unwrap_or(code_block); - response.push_str(&format!(" with content:\n\n{highlighted}\n")); - response.push_str(&format!("\n{response}\n")); + let header = response.clone(); + response.push_str(&format!(" with content:\n\n{highlighted}\n\n{header}")); } return Ok(response.into());