mirror of https://github.com/M66B/FairEmail.git
Fixed empty span orphans
This commit is contained in:
parent
63a70f5d27
commit
a81f3080e0
|
@ -692,7 +692,7 @@ public class FragmentCompose extends FragmentBase {
|
|||
for (ParagraphStyle p : ps) {
|
||||
int start = text.getSpanStart(p);
|
||||
int end = text.getSpanEnd(p);
|
||||
if (start == removed && end == removed + 1)
|
||||
if (start >= removed && end <= removed + 1)
|
||||
text.removeSpan(p);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue