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:
commit
1928492b41
|
@ -4703,8 +4703,11 @@ bool RichTextLabel::search(const String &p_string, bool p_from_selection, bool p
|
||||||
queue_redraw();
|
queue_redraw();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (current_line != ending_line) {
|
||||||
p_search_previous ? current_line-- : current_line++;
|
p_search_previous ? current_line-- : current_line++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (p_from_selection && selection.active) {
|
if (p_from_selection && selection.active) {
|
||||||
// Check contents of selection
|
// Check contents of selection
|
||||||
|
|
Loading…
Reference in New Issue