Skip to content

Commit 1406e06

Browse files
committed
Fix heatmap non-color rendering to leave fully invalid cells blank
1 parent 0030236 commit 1406e06

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/unicode_plot/graphics/heatmap_graphics.cr

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,12 @@ module UnicodePlot
129129
io << ' '
130130
end
131131
else
132-
# No color: just output the character (▄) so strip-ANSI comparison works
133-
io << HALF_BLOCK
132+
# No color: keep missing cells blank just like the color path.
133+
if fg != INVALID_COLOR || bg != INVALID_COLOR
134+
io << HALF_BLOCK
135+
else
136+
io << ' '
137+
end
134138
end
135139
end
136140
end

0 commit comments

Comments
 (0)