Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam 2024-10-25 22:01:10 +01:00
commit 895044c52b

2
tty.c
View File

@ -1366,6 +1366,8 @@ tty_check_codeset(struct tty *tty, const struct grid_cell *gc)
/* Characters less than 0x7f are always fine, no matter what. */ /* Characters less than 0x7f are always fine, no matter what. */
if (gc->data.size == 1 && *gc->data.data < 0x7f) if (gc->data.size == 1 && *gc->data.data < 0x7f)
return (gc); return (gc);
if (gc->flags & GRID_FLAG_TAB)
return (gc);
/* UTF-8 terminal and a UTF-8 character - fine. */ /* UTF-8 terminal and a UTF-8 character - fine. */
if (tty->client->flags & CLIENT_UTF8) if (tty->client->flags & CLIENT_UTF8)