Merge pull request #55341 from ator-dev/fix-line-deletion

This commit is contained in:
Rémi Verschelde 2021-11-29 14:48:56 +01:00 committed by GitHub
commit 2771bced6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1314,10 +1314,10 @@ void CodeTextEditor::delete_lines() {
int count = Math::abs(to_line - from_line) + 1;
text_editor->set_caret_line(from_line, false);
text_editor->deselect();
for (int i = 0; i < count; i++) {
_delete_line(from_line);
}
text_editor->deselect();
} else {
_delete_line(text_editor->get_caret_line());
}