term: print: don't pad with spacers if auto-margin is disabled

This commit is contained in:
Daniel Eklöf 2020-07-15 08:04:51 +02:00
parent b0798ad0be
commit 2fa2c9fad4
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -2407,7 +2407,7 @@ term_print(struct terminal *term, wchar_t wc, int width)
print_linewrap(term);
print_insert(term, width);
if (unlikely(width > 1) &&
if (unlikely(width > 1) && likely(term->auto_margin) &&
term->grid->cursor.point.col + width > term->cols)
{
/* Multi-column character that doesn't fit on current line -