Merge pull request #65158 from nongvantinh/fixed-infinite-loop

Fixes engine runs into an infinite loop when searching using FindBar
This commit is contained in:
Rémi Verschelde 2022-09-23 09:45:34 +02:00
commit 1928492b41

View File

@ -4703,7 +4703,10 @@ bool RichTextLabel::search(const String &p_string, bool p_from_selection, bool p
queue_redraw();
return true;
}
p_search_previous ? current_line-- : current_line++;
if (current_line != ending_line) {
p_search_previous ? current_line-- : current_line++;
}
}
if (p_from_selection && selection.active) {