From 2fa2c9fad4c401b174e084ee560defba7c6ca49e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 15 Jul 2020 08:04:51 +0200 Subject: [PATCH] term: print: don't pad with spacers if auto-margin is disabled --- terminal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminal.c b/terminal.c index 78c72ada..40bfbc90 100644 --- a/terminal.c +++ b/terminal.c @@ -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 -