on master help sign in
vty_mk_wcwidth: simplify check
1dc1239Jonathan Daugherty
cbits/mk_wcwidth.c+1−1
@@ -233,7 +233,7 @@ static HsInt builtin_wcwidth(HsChar ucs)
233// present, the built-in width table will be used.
233// present, the built-in width table will be used.
234HsInt vty_mk_wcwidth(HsChar ch)
234HsInt vty_mk_wcwidth(HsChar ch)
235{
235{
236− if (custom_table != NULL) {
236+ if (custom_table_ready) {
237 if ((ch >= 0) && (ch < custom_table_size)) {
237 if ((ch >= 0) && (ch < custom_table_size)) {
238 return custom_table[ch];
238 return custom_table[ch];
239 } else {
239 } else {