Fixed escaping indents

This commit is contained in:
M66B 2021-07-09 06:52:28 +02:00
parent fe740358c6
commit d7f45236cd
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}