mirror of https://github.com/M66B/FairEmail.git
Fixed escaping indents
This commit is contained in:
parent
fe740358c6
commit
d7f45236cd
|
@ -654,7 +654,7 @@ public class FragmentCompose extends FragmentBase {
|
||||||
int s = text.getSpanStart(indent);
|
int s = text.getSpanStart(indent);
|
||||||
int e = text.getSpanEnd(indent);
|
int e = text.getSpanEnd(indent);
|
||||||
int f = text.getSpanFlags(indent);
|
int f = text.getSpanFlags(indent);
|
||||||
if (e - 1 > s && added + 2 == e) {
|
if (e - 1 > s && added + 1 == e) {
|
||||||
text.removeSpan(indent);
|
text.removeSpan(indent);
|
||||||
text.setSpan(new IndentSpan(indent.getLeadingMargin(true)), s, e - 1, f);
|
text.setSpan(new IndentSpan(indent.getLeadingMargin(true)), s, e - 1, f);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue