fix: incorrect last line render in command mode (#201)

pull/202/head
sigoden 8 months ago committed by GitHub
parent eff69a482d
commit 16eba9baa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -56,7 +56,9 @@ pub fn cmd_render_stream(
}
ReplyEvent::Done => {
let input = format!("{}{buffer}", spaces(col));
println!("{}", render.render(&input));
let output = render.render(&input);
let output = &output[col..];
println!("{}", output);
break;
}
}

Loading…
Cancel
Save