Fixes #64962 that cause program run into infinite loop
This commit is contained in:
parent
736632ee7e
commit
97c0b0c74a
1 changed files with 4 additions and 1 deletions
|
@ -4622,7 +4622,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) {
|
||||
|
|
Loading…
Reference in a new issue