Fixed split overlap inner

This commit is contained in:
M66B 2021-06-01 13:52:33 +02:00
parent 9740f296ee
commit d5def306de
1 changed files with 5 additions and 3 deletions

View File

@ -622,9 +622,11 @@ public class StyleHelper {
// overlap all // overlap all
if (extend) if (extend)
edit.setSpan(span1, start, end, f); edit.setSpan(span1, start, end, f);
} else if (start > s && end < e) { } else if (start >= s && end <= e) {
// overlap inner // overlap inner
if (s < start)
edit.setSpan(span1, s, start, f); edit.setSpan(span1, s, start, f);
if (end < e)
edit.setSpan(span2, end, e, f); edit.setSpan(span2, end, e, f);
} }
} }