Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
Don't flush every chunk
Browse files Browse the repository at this point in the history
This was present since the original implementation in #104
but it looks as if it was just copied from code in kitty's
documentation.

I don't think we really need to flush all buffers here.
  • Loading branch information
swsnr committed Apr 21, 2023
1 parent c70cb2f commit 9b5f2e0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pulldown-cmark-mdcat/src/terminal/capabilities/kitty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ impl KittyImage {
write!(writer, "\x1b_G{},q=2;", cmd_header.join(","))?;
writer.write_all(data)?;
write!(writer, "\x1b\\")?;
// FIXME: Remove this? Why do we flush here?
writer.flush()?;

cmd_header.clear();
}
Expand Down

0 comments on commit 9b5f2e0

Please sign in to comment.