From 16ae7cdc35c3ceba33be313608f57781455b8912 Mon Sep 17 00:00:00 2001 From: Konstantinos Artopoulos Date: Tue, 11 Feb 2025 18:20:35 +0200 Subject: [PATCH] fix(cli): add newline characters on multiline prompts --- cli/app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/app.rs b/cli/app.rs index 7941e90e1..8e438cbfa 100644 --- a/cli/app.rs +++ b/cli/app.rs @@ -502,7 +502,7 @@ impl Limbo { } self.reset_input(); } else { - self.buffer_input(line); + self.buffer_input(format!("{}\n", line).as_str()); self.set_multiline_prompt(); } rl.add_history_entry(line.to_owned())?;