1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 19:12:48 -05:00

Add an option to use wcwidth_cjk() instead of wcwidth(), as several people

have asked for it.

[originally from svn r5542]
This commit is contained in:
Jacob Nevins
2005-03-22 23:20:23 +00:00
parent 5b695d81ad
commit faf59c78be
9 changed files with 36 additions and 6 deletions

View File

@ -2845,7 +2845,9 @@ static void term_out(Terminal *term)
if (DIRECT_CHAR(c))
width = 1;
if (!width)
width = wcwidth((wchar_t) c);
width = (term->cfg.cjk_ambig_wide ?
wcwidth_cjk((wchar_t) c) :
wcwidth((wchar_t) c));
if (term->wrapnext && term->wrap && width > 0) {
cline->lattr |= LATTR_WRAPPED;