mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-25 18:35:06 +01:00
Delete marked: remove styles first
This commit is contained in:
@@ -350,6 +350,12 @@ public class StyleHelper {
|
||||
int start = text.getSpanStart(span);
|
||||
int end = text.getSpanEnd(span);
|
||||
if (end == inserted) {
|
||||
for (Object o : text.getSpans(start, end, Object.class)) {
|
||||
int s = text.getSpanStart(o);
|
||||
int e = text.getSpanEnd(o);
|
||||
if (s <= e && s >= start && e <= end)
|
||||
text.removeSpan(o);
|
||||
}
|
||||
text.delete(start, end);
|
||||
text.removeSpan(span);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user