Closed bojidar-bg closed 7 months ago
Regression should be fixed! Let me know if I missed any other ones :sweat_smile:
As for is_whitespace
: I feel I would rather lean on the safe side and leave it only to ascii ' '
and '\t'
for now—I'd personally prefer to see fancy whitespaces like nbsp highlighted individually when they are changed, but if someone comes with a usecase where that's distracting, it wouldn't be too hard to enable treating Unicode whitespace characters as regular spaces. (:
This uses
bstr
'sgrapheme_indices
method to break the input text into graphemes, and then classifies them as words/spaces/other similarly as before.Some screenshots (Konsole):
(ignore spurious tab on 4)(diff | diffr | iconv)