Merge branch 'term-print-assume-col-can-be-incremented'

This commit is contained in:
Daniel Eklöf 2021-03-16 08:44:25 +01:00
commit d8f0e701b5
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -2848,11 +2848,11 @@ term_print(struct terminal *term, wchar_t wc, int width)
}
/* Advance cursor */
if (term->grid->cursor.point.col < term->cols - 1) {
term->grid->cursor.point.col++;
xassert(!term->grid->cursor.lcf);
} else
if (unlikely(++term->grid->cursor.point.col >= term->cols)) {
term->grid->cursor.lcf = true;
term->grid->cursor.point.col--;
} else
xassert(!term->grid->cursor.lcf);
}
enum term_surface