Skip to content

Commit

Permalink
Erase image content when line rendition changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
j4james committed Jun 22, 2024
1 parent dc099c6 commit bf5c6fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/buffer/out/textBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,8 @@ void TextBuffer::SetCurrentLineRendition(const LineRendition lineRendition, cons
row.SetLineRendition(lineRendition);
// If the line rendition has changed, the row can no longer be wrapped.
row.SetWrapForced(false);
// And all image content on the row is removed.
row.GetMutableImageSlice().reset();
// And if it's no longer single width, the right half of the row should be erased.
if (lineRendition != LineRendition::SingleWidth)
{
Expand Down

0 comments on commit bf5c6fe

Please sign in to comment.