Fix various typos and code style issues

This commit is contained in:
Rémi Verschelde
2024-11-28 16:56:14 +01:00
parent 0eadbdb5d0
commit 88e81ee730
23 changed files with 116 additions and 114 deletions

View File

@@ -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 });