mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02:00
Fix the indentation.
This commit is contained in:
parent
48ab298a67
commit
0140e7c6b2
1 changed files with 7 additions and 7 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue