Mark snippet as inserted

pull/214/head
M66B 5 months ago
parent b1623ce1f8
commit efd3edac53

@ -414,6 +414,7 @@ public class EditTextCompose extends FixedEditText {
int start = getSelectionStart();
if (start < 0)
start = 0;
int at = start;
Editable edit = getText();
@ -426,6 +427,8 @@ public class EditTextCompose extends FixedEditText {
edit.insert(start, ssb);
setSelection(start + ssb.length());
StyleHelper.markAsInserted(getText(), at, at + (start - at) + ssb.length());
} catch (Throwable ex) {
Log.e(ex);
}

Loading…
Cancel
Save