Merge pull request #232 from kenzierocks/bugfix/counting-too-much

Fix unicode counting method

Signed-off-by: Pablo Lezaeta <prflr88@gmail.com>
This commit is contained in:
Pablo Lezaeta Reyes [pˈaβ̞lo lˌe̞θaˈeta rˈejɛ] 2016-02-02 23:47:23 -03:00
commit 1e7763216c

View file

@ -459,7 +459,7 @@ class Backend():
i += 1
if not UCS.isCombining(c):
rc += 1
if unicodedata.east_asian_width(c) in ('F', 'W', 'A'):
if unicodedata.east_asian_width(c) in ('F', 'W'):
rc += 1
return rc