Render timing.c robust in the face of strangeness. The strangenesses
[u/mdw/putty] / terminal.c
index 904f1b8..a6f54e4 100644 (file)
@@ -2846,8 +2846,8 @@ static void term_out(Terminal *term)
                        width = 1;
                    if (!width)
                        width = (term->cfg.cjk_ambig_wide ?
-                                wcwidth_cjk((wchar_t) c) :
-                                wcwidth((wchar_t) c));
+                                mk_wcwidth_cjk((wchar_t) c) :
+                                mk_wcwidth((wchar_t) c));
 
                    if (term->wrapnext && term->wrap && width > 0) {
                        cline->lattr |= LATTR_WRAPPED;