avoid potential panic when processing double wide cells

This commit is contained in:
Wez Furlong committed 2021-03-23 08:13:26 -07:00
1 parent be8c3be910
commit f301fc6ecc
1 file changed
+1 -1
+1 -1
View File
@@ -882,7 +882,7 @@ impl super::TermWindow {
continue;
}
if self.config.custom_block_glyphs {
if self.config.custom_block_glyphs && glyph_idx == 0 {
if let Some(block) = BlockKey::from_cell(&params.line.cells()[cell_idx]) {
self.populate_block_quad(
block,