This is my first time working with `AnnotatedStrin...
# compose-desktop
b
This is my first time working with
AnnotatedString
and I'm running into problems with removing a particular style from a range of text. Currently, I'm breaking the AnnotatedString into three parts: before the selection, the selection, and after the selection, mapping over the styles in the selection to remove the style, then combining them back together. The problem is that this leaves a lot of ranges with no styles inside the AnnotatedString. Is there a better way to be doing this?