@@ -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)
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];