mirror of
https://github.com/godotengine/godot.git
synced 2024-11-26 06:03:38 +00:00
Make delete_lines work correctly regardless of the selection
This commit is contained in:
parent
70d530029a
commit
3237950216
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user