DeepL: improved paragraph extending

This commit is contained in:
M66B 2021-05-19 18:41:29 +02:00
parent 6b60a2e52c
commit 2473059950
1 changed files with 4 additions and 0 deletions

View File

@ -1999,6 +1999,10 @@ public class FragmentCompose extends FragmentBase {
end = tmp;
}
if (start > 0 &&
(start == edit.length() || edit.charAt(start) == '\n'))
start--;
// Trim start
while (start < edit.length() - 1 && edit.charAt(start) == '\n')
start++;