Fixed indent span cursor position

This commit is contained in:
M66B
2021-07-08 22:20:15 +02:00
parent 42fe14909a
commit e94a8e1130
2 changed files with 2 additions and 2 deletions

View File

@@ -2663,7 +2663,7 @@ public class HtmlHelper {
else
setSpan(ssb, new QuoteSpan(colorBlockquote, quoteStripe, quoteGap), start, ssb.length(), Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
} else
setSpan(ssb, new IndentSpan(intentSize), start, ssb.length());
setSpan(ssb, new IndentSpan(intentSize), start, ssb.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE);
break;
case "br":
ssb.append('\n');

View File

@@ -559,7 +559,7 @@ public class StyleHelper {
edit.removeSpan(indents[0]);
} else {
IndentSpan is = new IndentSpan(intentSize);
edit.setSpan(is, prev, next, Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
edit.setSpan(is, prev, next, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
}
next++;