From 0d8c7c30a025e674567fafcef91ac86d784d536e Mon Sep 17 00:00:00 2001 From: Emmanuel Barroga Date: Tue, 6 Aug 2019 23:41:10 -0700 Subject: Fix Find in Files Not Working Properly When using the "Find in Files" option to search in non-script files (e.g. .tscn), the search does not work properly. --- editor/plugins/script_editor_plugin.cpp | 24 ++++++++++++++++++++---- editor/plugins/text_editor.cpp | 5 +++++ editor/plugins/text_editor.h | 1 + 3 files changed, 26 insertions(+), 4 deletions(-) (limited to 'editor/plugins') diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 9418349d71..02d4b9d1d7 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -44,6 +44,7 @@ #include "editor/script_editor_debugger.h" #include "scene/main/viewport.h" #include "script_text_editor.h" +#include "text_editor.h" /*** SCRIPT EDITOR ****/ @@ -2995,11 +2996,26 @@ void ScriptEditor::_on_find_in_files_result_selected(String fpath, int line_numb shader_editor->make_visible(true); shader_editor->get_shader_editor()->goto_line_selection(line_number - 1, begin, end); } else { - edit(res); + Ref