Revert "term: print: line-wrap multi-column characters instead of cutting them in half"

This reverts commit 8448296bb3.

Applications need to be multi-column character aware anyway, and they
should deal with this.
This commit is contained in:
Daniel Eklöf 2020-05-09 12:04:55 +02:00
parent 8448296bb3
commit c090a0664f
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 4 additions and 6 deletions

View file

@ -71,7 +71,7 @@
* `OSC 12 ?` to return the cursor color, not the cursor's text color.
* `OSC 12;#000000` to configure the cursor to use inverted
foreground/background colors.
* Double-width characters line wrapping at end of line.
### Security

View file

@ -2284,11 +2284,9 @@ term_disable_app_sync_updates(struct terminal *term)
}
static inline void
print_linewrap(struct terminal *term, int width)
print_linewrap(struct terminal *term)
{
if (likely(!(term->grid->cursor.lcf ||
term->grid->cursor.point.col + width > term->cols)))
{
if (likely(!term->grid->cursor.lcf)) {
/* Not and end of line */
return;
}
@ -2331,7 +2329,7 @@ term_print(struct terminal *term, wchar_t wc, int width)
if (unlikely(width <= 0))
return;
print_linewrap(term, width);
print_linewrap(term);
print_insert(term, width);
sixel_delete_at_cursor(term);