Merge pull request #68651 from ClarkThyLord/fix_code_editor_search_match_inconsistencies
Fix code editor search match inconsistencies
This commit is contained in:
commit
74590e9597
1 changed files with 5 additions and 3 deletions
|
@ -377,10 +377,12 @@ void FindReplaceBar::_update_results_count() {
|
||||||
|
|
||||||
if (is_whole_words()) {
|
if (is_whole_words()) {
|
||||||
if (col_pos > 0 && !is_symbol(line_text[col_pos - 1])) {
|
if (col_pos > 0 && !is_symbol(line_text[col_pos - 1])) {
|
||||||
break;
|
col_pos += searched.length();
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
if (col_pos + line_text.length() < line_text.length() && !is_symbol(line_text[col_pos + searched.length()])) {
|
if (col_pos + searched.length() < line_text.length() && !is_symbol(line_text[col_pos + searched.length()])) {
|
||||||
break;
|
col_pos += searched.length();
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue