Stopped edge stripping when using Find in Files

This commit is contained in:
VolTer 2022-09-06 23:28:16 +02:00
parent 8c7be63588
commit 0179791e85

View file

@ -422,8 +422,7 @@ void FindInFilesDialog::set_find_in_files_mode(FindInFilesMode p_mode) {
} }
String FindInFilesDialog::get_search_text() const { String FindInFilesDialog::get_search_text() const {
String text = _search_text_line_edit->get_text(); return _search_text_line_edit->get_text();
return text.strip_edges();
} }
String FindInFilesDialog::get_replace_text() const { String FindInFilesDialog::get_replace_text() const {