summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-11-29 14:48:56 +0100
committerGitHub <noreply@github.com>2021-11-29 14:48:56 +0100
commit2771bced6bf76ac36ca09685ffe98b5f71a622fd (patch)
tree508cdbe8c7717435deb55f432c6a4ebafa153244
parentcae5615a22d82d820366f75b0f5d807eea2fcdfe (diff)
parent3237950216b592e7423f1b353a9b247c88e277b7 (diff)
Merge pull request #55341 from ator-dev/fix-line-deletion
-rw-r--r--editor/code_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp
index bfcd2dd4ca..1f01e9d4cf 100644
--- a/editor/code_editor.cpp
+++ b/editor/code_editor.cpp
@@ -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());
}