mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05:00
Fix various typos and code style issues
This commit is contained in:
@@ -3545,13 +3545,13 @@ void CodeEdit::_filter_code_completion_candidates_impl() {
|
||||
|
||||
for (int i = 1; *string_to_complete_char_lower && (all_possible_subsequence_matches.size() > 0); i++, string_to_complete_char_lower++) {
|
||||
// find all occurrences of ssq_lower to avoid looking everywhere each time
|
||||
Vector<int> all_ocurence;
|
||||
Vector<int> all_occurrences;
|
||||
if (long_option) {
|
||||
all_ocurence.push_back(target_lower.find_char(*string_to_complete_char_lower));
|
||||
all_occurrences.push_back(target_lower.find_char(*string_to_complete_char_lower));
|
||||
} else {
|
||||
for (int j = i; j < target_lower.length(); j++) {
|
||||
if (target_lower[j] == *string_to_complete_char_lower) {
|
||||
all_ocurence.push_back(j);
|
||||
all_occurrences.push_back(j);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3569,7 +3569,7 @@ void CodeEdit::_filter_code_completion_candidates_impl() {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
for (int index : all_ocurence) {
|
||||
for (int index : all_occurrences) {
|
||||
if (index > next_index) {
|
||||
Vector<Pair<int, int>> new_match = subsequence_match;
|
||||
new_match.push_back({ index, 1 });
|
||||
|
||||
Reference in New Issue
Block a user