diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-07-14 10:03:35 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-07-14 10:05:24 +0000 |
| commit | b035469a7fba0908ecaabdd739bd4fe22de2ff8b (patch) | |
| tree | 9bc785aedd6b1f07901c2ccd7892e0a1070b6b5c | |
| parent | grid: reflow: use width=1 for invalid characters (diff) | |
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().
| -rw-r--r-- | terminal.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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; } |
