Explorar o código

Merge pull request #31032 from KoBeWi/searchlect

Select found text in Script Editor
Rémi Verschelde %!s(int64=6) %!d(string=hai) anos
pai
achega
b14f12b571
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      editor/code_editor.cpp

+ 1 - 0
editor/code_editor.cpp

@@ -152,6 +152,7 @@ bool FindReplaceBar::_search(uint32_t p_flags, int p_from_line, int p_from_col)
 			text_edit->cursor_set_line(line, false);
 			text_edit->cursor_set_column(col + text.length(), false);
 			text_edit->center_viewport_to_cursor();
+			text_edit->select(line, col, line, col + text.length());
 		}
 
 		text_edit->set_search_text(text);