summaryrefslogtreecommitdiffstats
path: root/src/render/mod.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2023-11-03 13:41:03 +0800
committerGitHub <noreply@github.com>2023-11-03 13:41:03 +0800
commit811e605fbfd5b4973cbff9439db14c76c76b140f (patch)
tree5d41ab682f2e9b07b08b3b29c3567c809cbb1456 /src/render/mod.rs
parentc20cd20d535dbf6194cd10d44c91eb87fc45b343 (diff)
downloadaichat-811e605fbfd5b4973cbff9439db14c76c76b140f.tar.gz
fix: don't ignore '\n\n' reply at begin (#206)
Diffstat (limited to 'src/render/mod.rs')
-rw-r--r--src/render/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/mod.rs b/src/render/mod.rs
index 93eb30e..2b97557 100644
--- a/src/render/mod.rs
+++ b/src/render/mod.rs
@@ -78,7 +78,7 @@ impl ReplyHandler {
pub fn text(&mut self, text: &str) -> Result<()> {
debug!("ReplyText: {}", text);
- if self.buffer.is_empty() && text == "\n\n" {
+ if text.is_empty() {
return Ok(());
}
self.buffer.push_str(text);