diff options
author | LemonBoy <thatlemon@gmail.com> | 2015-10-04 11:56:54 +0200 |
---|---|---|
committer | LemonBoy <thatlemon@gmail.com> | 2015-10-04 20:23:51 +0200 |
commit | 0140e7c6b23ff1490965b080a7882b2508677d55 (patch) | |
tree | 46126228d4316b62c1b8a5366e6f7aca09431c60 /src/fe-text | |
parent | 48ab298a67151e6fce33c1d7b34f4f83796b8d9a (diff) | |
download | irssi-0140e7c6b23ff1490965b080a7882b2508677d55.zip |
Fix the indentation.
Diffstat (limited to 'src/fe-text')
-rw-r--r-- | src/fe-text/term-terminfo.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/fe-text/term-terminfo.c b/src/fe-text/term-terminfo.c index 6d289cfc..27be904e 100644 --- a/src/fe-text/term-terminfo.c +++ b/src/fe-text/term-terminfo.c @@ -537,14 +537,14 @@ int term_addstr(TERM_WINDOW *window, const char *str) ptr = str; - if (term_type != TERM_TYPE_BIG5) { - while (*ptr != '\0') { - tmp = g_utf8_get_char(ptr); - len += unichar_isprint(tmp) ? mk_wcwidth(tmp) : 1; - ptr = g_utf8_next_char(ptr); - } + if (term_type == TERM_TYPE_UTF8) { + while (*ptr != '\0') { + tmp = g_utf8_get_char(ptr); + len += unichar_isprint(tmp) ? mk_wcwidth(tmp) : 1; + ptr = g_utf8_next_char(ptr); + } } else - len = raw_len; + len = raw_len; term_printed_text(len); |