diff options
author | nicm <nicm> | 2014-10-02 08:36:26 +0000 |
---|---|---|
committer | nicm <nicm> | 2014-10-02 08:36:26 +0000 |
commit | 2f19df09b1850d80e60f2d37f0b7f0db22eae6f7 (patch) | |
tree | 571344ba49bdf96207dd987de238298b16b908d4 /tty-acs.c | |
parent | 045d0c3b9f616fe76b68d4551a6d66f410e760e8 (diff) | |
download | rtmux-2f19df09b1850d80e60f2d37f0b7f0db22eae6f7.tar.gz rtmux-2f19df09b1850d80e60f2d37f0b7f0db22eae6f7.tar.bz2 rtmux-2f19df09b1850d80e60f2d37f0b7f0db22eae6f7.zip |
Copy ACS characters as UTF-8, from Balazs Kezes.
Diffstat (limited to 'tty-acs.c')
-rw-r--r-- | tty-acs.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -81,7 +81,7 @@ tty_acs_get(struct tty *tty, u_char ch) struct tty_acs_entry *entry; /* If not a UTF-8 terminal, use the ACS set. */ - if (!(tty->flags & TTY_UTF8)) { + if (tty != NULL && !(tty->flags & TTY_UTF8)) { if (tty->term->acs[ch][0] == '\0') return (NULL); return (&tty->term->acs[ch][0]); |