Fixed indent span cursor position

pull/199/head
M66B 4 years ago
parent 42fe14909a
commit e94a8e1130

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

@ -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++;

Loading…
Cancel
Save