1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-27 12:23:46 +03:00

avoid potential panic when processing double wide cells

This commit is contained in:
Wez Furlong 2021-03-23 08:13:26 -07:00
parent be8c3be910
commit f301fc6ecc

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,