Skip to content

Commit

Permalink
fix: incorrect last line render in command mode (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigoden authored Nov 2, 2023
1 parent eff69a4 commit 16eba9b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/render/cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 16eba9b

Please sign in to comment.