term: remove assert, as we're already checking for this in the loop condition

This commit is contained in:
Daniel Eklöf 2020-07-14 12:07:12 +02:00
parent b035469a7f
commit 7480c1c06b
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -2419,7 +2419,6 @@ term_print(struct terminal *term, wchar_t wc, int width)
/* Advance cursor the 'additional' columns while dirty:ing the cells */
for (int i = 1; i < width && term->grid->cursor.point.col < term->cols - 1; i++) {
term->grid->cursor.point.col++;
assert(term->grid->cursor.point.col < term->cols);
struct cell *cell = &row->cells[term->grid->cursor.point.col];
cell->wc = 0;