pull/198/head
M66B 4 years ago
parent ffd197db8b
commit 8190f0348d

@ -1954,6 +1954,15 @@ public class FragmentCompose extends FragmentBase {
end = tmp; end = tmp;
} }
// Trim start
while (start < edit.length() - 1 && edit.charAt(start) == '\n')
start++;
// Trim end
while (end > 1 && edit.charAt(end - 2) == '\n')
end--;
// Expand selection at start
while (start > 0 && edit.charAt(start - 1) != '\n') while (start > 0 && edit.charAt(start - 1) != '\n')
start--; start--;

Loading…
Cancel
Save