summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_text_editor.cpp
diff options
context:
space:
mode:
authorPaulb23 <p_batty@hotmail.co.uk>2021-03-13 14:09:49 +0000
committerPaulb23 <p_batty@hotmail.co.uk>2021-06-01 17:07:01 +0100
commit5c618dd03dd4fe1ada234e91a08bcf12eb8f7aa7 (patch)
treeb3ad6de556128dede27bc654cb1a9e6fc48fdafb /editor/plugins/script_text_editor.cpp
parentc5f237eaf8e46e55699a3e95956daec65f5aa963 (diff)
downloadredot-engine-5c618dd03dd4fe1ada234e91a08bcf12eb8f7aa7.tar.gz
Move code folding into CodeEdit and hide line hiding API
Diffstat (limited to 'editor/plugins/script_text_editor.cpp')
-rw-r--r--editor/plugins/script_text_editor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp
index a29e51e8fb..bd005e2e1d 100644
--- a/editor/plugins/script_text_editor.cpp
+++ b/editor/plugins/script_text_editor.cpp
@@ -1061,7 +1061,7 @@ void ScriptTextEditor::_edit_option(int p_op) {
code_editor->clone_lines_down();
} break;
case EDIT_TOGGLE_FOLD_LINE: {
- tx->toggle_fold_line(tx->cursor_get_line());
+ tx->toggle_foldable_line(tx->cursor_get_line());
tx->update();
} break;
case EDIT_FOLD_ALL_LINES: {
@@ -1545,7 +1545,7 @@ void ScriptTextEditor::_text_edit_gui_input(const Ref<InputEvent> &ev) {
}
bool has_color = (word_at_pos == "Color");
- bool foldable = tx->can_fold(row) || tx->is_folded(row);
+ bool foldable = tx->can_fold_line(row) || tx->is_line_folded(row);
bool open_docs = false;
bool goto_definition = false;