diff options
author | 2020-04-16 14:25:35 +0000 | |
---|---|---|
committer | 2020-04-16 14:25:35 +0000 | |
commit | 9f8d5370c110b6c644f85df61d2b0b04913bf700 (patch) | |
tree | 59935ebbfe9fd927e1c0d77f21bf718a2fad0d00 /usr.bin/tmux/tty.c | |
parent | Add a helper function to get the terminal flags. (diff) | |
download | wireguard-openbsd-9f8d5370c110b6c644f85df61d2b0b04913bf700.tar.xz wireguard-openbsd-9f8d5370c110b6c644f85df61d2b0b04913bf700.zip |
Move the UTF-8 flag to terminal flags.
Diffstat (limited to 'usr.bin/tmux/tty.c')
-rw-r--r-- | usr.bin/tmux/tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c index 7a4d1606909..38c81ecea9a 100644 --- a/usr.bin/tmux/tty.c +++ b/usr.bin/tmux/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.349 2020/04/16 14:03:51 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.350 2020/04/16 14:25:35 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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. */ |