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:
@ -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;
|
||||
|
Reference in New Issue
Block a user