We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3792c10 commit 2ed57baCopy full SHA for 2ed57ba
src/wcwidth/Wcwidth.hx
@@ -125,7 +125,7 @@ class Wcwidth {
125
if (ucs < 32 || (ucs >= 0x7f && ucs < 0xa0)) return -1;
126
127
// binary search in table of non-spacing characters
128
- if (_bisearch(ucs, combining, combining.length)) return 0;
+ if (_bisearch(ucs, combining, combining.length - 1)) return 0;
129
130
// if we arrive here, ucs is not a combining or C0/C1 control character
131
return 1 +
0 commit comments