You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In AttributedString::set_text_color and AttributedString::set_font, range.end is used as the length field to CFRange::init, which unless I am mistaken seems wrong to me.
The documentation implies that if I set the set range 3..4 to red, I would change only character 3 to be red, not 3 through 6, which is what currently happens.
In
AttributedString::set_text_color
andAttributedString::set_font
,range.end
is used as thelength
field toCFRange::init
, which unless I am mistaken seems wrong to me.The documentation implies that if I set the set range
3..4
to red, I would change only character 3 to be red, not 3 through 6, which is what currently happens.The relevant code is here:
cacao/src/text/attributed_string.rs
Lines 45 to 58 in 7ffe398
The text was updated successfully, but these errors were encountered: