mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-06 17:13:23 +02:00
Sentence
This commit is contained in:
@@ -739,11 +739,12 @@ public class FragmentCompose extends FragmentBase {
|
||||
|
||||
if (save != null)
|
||||
try {
|
||||
if (lt == null && lt_sentence) {
|
||||
if (lt == null && lt_sentence &&
|
||||
Helper.isSentenceChar(text.charAt(save))) {
|
||||
int start = save;
|
||||
while (start > 0 &&
|
||||
text.charAt(start - 1) != '\n' &&
|
||||
!Helper.isEndChar(text.charAt(start - 1)))
|
||||
!Helper.isSentenceChar(text.charAt(start - 1)))
|
||||
start--;
|
||||
while (start < save)
|
||||
if (Character.isWhitespace(text.charAt(start)))
|
||||
|
||||
Reference in New Issue
Block a user