diff options
Diffstat (limited to 'editor/editor_quick_open.cpp')
-rw-r--r-- | editor/editor_quick_open.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_quick_open.cpp b/editor/editor_quick_open.cpp index f8df0f9fa8..d7a02ace24 100644 --- a/editor/editor_quick_open.cpp +++ b/editor/editor_quick_open.cpp @@ -160,7 +160,7 @@ float EditorQuickOpen::_score_search_result(const PackedStringArray &p_search_to } // Prioritize matches at the front of the path token. - if (min_match_idx == 0 || p_path.find("/" + s) != -1) { + if (min_match_idx == 0 || p_path.contains("/" + s)) { token_score += 1.0f; } |