term: erase_cell_range(): check if row->extra != NULL

This commit is contained in:
Daniel Eklöf 2021-11-20 14:40:03 +01:00
parent 53fc1a1cb1
commit 0be55ef74c
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1781,7 +1781,8 @@ erase_cell_range(struct terminal *term, struct row *row, int start, int end)
} else
memset(&row->cells[start], 0, (end - start + 1) * sizeof(row->cells[0]));
grid_row_uri_range_erase(row, start, end);
if (unlikely(row->extra != NULL))
grid_row_uri_range_erase(row, start, end);
}
static inline void