mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-20 13:17:08 +00:00
Mark snippet as inserted
This commit is contained in:
parent
b1623ce1f8
commit
efd3edac53
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue