mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
Ticket #1627
fix: display double width (CJK) characters. Signed-off-by: Ilia Maslakov <il.smind@google.com>
This commit is contained in:
parent
20cd37d751
commit
dfb0040c5b
@ -180,6 +180,10 @@ mcview_display_nroff (mcview_t * view)
|
||||
#endif
|
||||
tty_print_anychar (c);
|
||||
}
|
||||
#ifdef HAVE_CHARSET
|
||||
if (view->utf8 && g_unichar_iswide(c))
|
||||
col++;
|
||||
#endif
|
||||
col++;
|
||||
tty_setcolor (NORMAL_COLOR);
|
||||
}
|
||||
|
@ -151,6 +151,10 @@ mcview_display_text (mcview_t * view)
|
||||
#endif
|
||||
tty_print_anychar (c);
|
||||
}
|
||||
#ifdef HAVE_CHARSET
|
||||
if (view->utf8 && g_unichar_iswide(c))
|
||||
col++;
|
||||
#endif
|
||||
col++;
|
||||
tty_setcolor (NORMAL_COLOR);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user