mirror of
https://github.com/ilyakooo0/vty.git
synced 2024-12-01 14:36:27 +03:00
vty_mk_wcwidth: simplify check
This commit is contained in:
parent
ee91cb6245
commit
1dc1239b39
@ -233,7 +233,7 @@ static HsInt builtin_wcwidth(HsChar ucs)
|
|||||||
// present, the built-in width table will be used.
|
// present, the built-in width table will be used.
|
||||||
HsInt vty_mk_wcwidth(HsChar ch)
|
HsInt vty_mk_wcwidth(HsChar ch)
|
||||||
{
|
{
|
||||||
if (custom_table != NULL) {
|
if (custom_table_ready) {
|
||||||
if ((ch >= 0) && (ch < custom_table_size)) {
|
if ((ch >= 0) && (ch < custom_table_size)) {
|
||||||
return custom_table[ch];
|
return custom_table[ch];
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user