Skip to content

Commit

Permalink
Merge 'cli: Add newline characters on multiline prompts' from Konstan…
Browse files Browse the repository at this point in the history
…tinos Artopoulos

Fixes #980

Closes #985
  • Loading branch information
penberg committed Feb 12, 2025
2 parents ebceefa + 16ae7cd commit 7e3aaae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())?;
Expand Down

0 comments on commit 7e3aaae

Please sign in to comment.