diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-07-14 08:58:57 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-07-14 08:58:57 +0000 |
| commit | 9dc1d18241be1c496980b30c2b3eb943dd9aaccb (patch) | |
| tree | 7f29025fdfb3a9fb1f5ab8b4ba8a4814d2c3fc1a /terminal.c | |
| parent | csi: DECAWM: clear LCF (diff) | |
term: print: force line-wrap if a multi-column character does not fit on current line
Diffstat (limited to 'terminal.c')
| -rw-r--r-- | terminal.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -2388,6 +2388,12 @@ term_print(struct terminal *term, wchar_t wc, int width) if (unlikely(width <= 0)) return; + if (term->grid->cursor.point.col + width > term->cols) { + /* Multi-column character that doesn't fit on current line - + * force a line wrap */ + term->grid->cursor.lcf = 1; + } + print_linewrap(term); print_insert(term, width); |
