Fixed escaping indents

pull/199/head
M66B 3 years ago
parent fe740358c6
commit d7f45236cd

@ -654,7 +654,7 @@ public class FragmentCompose extends FragmentBase {
int s = text.getSpanStart(indent);
int e = text.getSpanEnd(indent);
int f = text.getSpanFlags(indent);
if (e - 1 > s && added + 2 == e) {
if (e - 1 > s && added + 1 == e) {
text.removeSpan(indent);
text.setSpan(new IndentSpan(indent.getLeadingMargin(true)), s, e - 1, f);
}

Loading…
Cancel
Save