From e51aa14208b6c0b87191b046ace6b9b59678969f Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Thu, 25 Jul 2019 17:30:48 +0100 Subject: Fix memory leaks with SyntaxHighlighters --- editor/plugins/text_editor.h | 1 + 1 file changed, 1 insertion(+) (limited to 'editor/plugins/text_editor.h') diff --git a/editor/plugins/text_editor.h b/editor/plugins/text_editor.h index ae0c0bcf93..3a330576ae 100644 --- a/editor/plugins/text_editor.h +++ b/editor/plugins/text_editor.h @@ -154,6 +154,7 @@ public: static void register_editor(); TextEditor(); + ~TextEditor(); }; #endif // TEXT_EDITOR_H -- cgit v1.2.3 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/text_editor.h | 1 + 1 file changed, 1 insertion(+) (limited to 'editor/plugins/text_editor.h') diff --git a/editor/plugins/text_editor.h b/editor/plugins/text_editor.h index 3a330576ae..c0d4052646 100644 --- a/editor/plugins/text_editor.h +++ b/editor/plugins/text_editor.h @@ -131,6 +131,7 @@ public: virtual Vector get_functions(); virtual void get_breakpoints(List *p_breakpoints); virtual void goto_line(int p_line, bool p_with_error = false); + void goto_line_selection(int p_line, int p_begin, int p_end); virtual void set_executing_line(int p_line); virtual void clear_executing_line(); virtual void trim_trailing_whitespace(); -- cgit v1.2.3 From 68ce87fbab511ada7fd17baa41972bcc9d73d036 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Silva Dias Date: Fri, 9 Aug 2019 17:23:42 -0300 Subject: Move "Go to Line..." from "Edit" to "Go To" in text editor --- editor/plugins/text_editor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/plugins/text_editor.h') diff --git a/editor/plugins/text_editor.h b/editor/plugins/text_editor.h index c0d4052646..c69e1672c5 100644 --- a/editor/plugins/text_editor.h +++ b/editor/plugins/text_editor.h @@ -46,7 +46,7 @@ private: MenuButton *edit_menu; PopupMenu *highlighter_menu; MenuButton *search_menu; - MenuButton *bookmarks_menu; + PopupMenu *bookmarks_menu; PopupMenu *context_menu; GotoLineDialog *goto_line_dialog; -- cgit v1.2.3 From 3d86ef74e714599a3da02a588d96915c535ab267 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Silva Dias Date: Fri, 9 Aug 2019 18:55:01 -0300 Subject: Add "Find in Files..." to the text editor --- editor/plugins/text_editor.h | 1 + 1 file changed, 1 insertion(+) (limited to 'editor/plugins/text_editor.h') diff --git a/editor/plugins/text_editor.h b/editor/plugins/text_editor.h index c69e1672c5..c8b49a61e0 100644 --- a/editor/plugins/text_editor.h +++ b/editor/plugins/text_editor.h @@ -87,6 +87,7 @@ private: SEARCH_FIND_NEXT, SEARCH_FIND_PREV, SEARCH_REPLACE, + SEARCH_IN_FILES, SEARCH_GOTO_LINE, BOOKMARK_TOGGLE, BOOKMARK_GOTO_NEXT, -- cgit v1.2.3