1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Fix various fringe issues with multi-carets and selections

This commit is contained in:
VolTer
2022-12-05 19:05:02 +01:00
parent 92287c2cb2
commit 94416e41c5
2 changed files with 43 additions and 60 deletions

View File

@@ -353,7 +353,9 @@ void TextEditor::_edit_option(int p_op) {
code_editor->duplicate_selection();
} break;
case EDIT_TOGGLE_FOLD_LINE: {
tx->toggle_foldable_line(tx->get_caret_line());
for (int caret_idx = 0; caret_idx < tx->get_caret_count(); caret_idx++) {
tx->toggle_foldable_line(tx->get_caret_line(caret_idx));
}
tx->queue_redraw();
} break;
case EDIT_FOLD_ALL_LINES: {