Fix cli comments parsing

This commit is contained in:
Diego Reis 2025-01-16 17:55:20 -03:00
parent 20ea8fb941
commit 285eeccb84

View file

@ -434,6 +434,9 @@ impl Limbo {
line: &str,
rl: &mut rustyline::DefaultEditor,
) -> anyhow::Result<()> {
if line.trim_start().starts_with("--") {
return Ok(());
}
if self.input_buff.is_empty() {
if line.is_empty() {
return Ok(());