on master help sign in
vty_mk_wcwidth: simplify check
commit1dc1239b398c53e42ec39a4f273d066c15e2983a authorJonathan Daugherty <cygnus@foobox.com> dateThu 5 Mar 2020, 14:18 (7 years ago) parentee91cb6
1 file changed+1−1
cbits/mk_wcwidth.c+1−1
cbits/mk_wcwidth.c+1−1
@@ -233,7 +233,7 @@ static HsInt builtin_wcwidth(HsChar ucs)
233233// present, the built-in width table will be used.
234234HsInt vty_mk_wcwidth(HsChar ch)
235235{
236− if (custom_table != NULL) {
236+ if (custom_table_ready) {
237237 if ((ch >= 0) && (ch < custom_table_size)) {
238238 return custom_table[ch];
239239 } else {