term: print: manually increment cursor column

We know we're within bounds, and thus we don't need the extra overhead
of term_cursor_right().
This commit is contained in:
Daniel Eklöf 2020-07-14 12:03:35 +02:00
parent 466466c19e
commit b035469a7f
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -2427,9 +2427,10 @@ term_print(struct terminal *term, wchar_t wc, int width)
}
/* Advance cursor */
if (term->grid->cursor.point.col < term->cols - 1)
term_cursor_right(term, 1);
else
if (term->grid->cursor.point.col < term->cols - 1) {
term->grid->cursor.point.col++;
assert(!term->grid->cursor.lcf);
} else
term->grid->cursor.lcf = true;
}