Move the UTF-8 flag to terminal flags.

This commit is contained in:
nicm
2020-04-16 14:25:35 +00:00
parent 4744aa43af
commit 5ec80bd249
5 changed files with 6 additions and 5 deletions

2
tty.c
View File

@ -1255,7 +1255,7 @@ tty_check_codeset(struct tty *tty, const struct grid_cell *gc)
return (gc);
/* UTF-8 terminal and a UTF-8 character - fine. */
if (tty->flags & TTY_UTF8)
if (tty_get_flags(tty) & TERM_UTF8)
return (gc);
/* Replace by the right number of underscores. */