DeepL: improved paragraph extending

pull/199/head
M66B 4 years ago
parent 6b60a2e52c
commit 2473059950

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

Loading…
Cancel
Save