Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Fix FindInFiles handling of unicode identifiers

kobewi9de57beb6c67
diff --git a/editor/script/find_in_files.cpp b/editor/script/find_in_files.cpp
index bf38caa74c8..9ec0524aaf9 100644
--- a/editor/script/find_in_files.cpp
+++ b/editor/script/find_in_files.cpp
@@ -74,10 +74,10 @@ static bool find_next(const String &p_line, const String &p_pattern, int p_from,
r_out_end = end;
if (p_whole_words) {
- if (begin > 0 && is_ascii_identifier_char(p_line[begin - 1])) {
+ if (begin > 0 && !is_symbol(p_line[begin - 1])) {
continue;
}
- if (end < p_line.size() && is_ascii_identifier_char(p_line[end])) {
+ if (end < p_line.length() && !is_symbol(p_line[end])) {
continue;
}
}