Skip to content

Commit 16df341

Browse files
authored
Merge pull request #74777 from lawnjelly/textedit_lineinregion
[3.x] Fix TextEdit color_region_cache bug
2 parents 1a4bcad + 57306bf commit 16df341

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scene/gui/text_edit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5488,7 +5488,7 @@ int TextEdit::_is_line_in_region(int p_line) {
54885488
// If not find the closest line we have.
54895489
int previous_line = p_line - 1;
54905490
for (; previous_line > -1; previous_line--) {
5491-
if (color_region_cache.has(p_line)) {
5491+
if (color_region_cache.has(previous_line)) {
54925492
break;
54935493
}
54945494
}

0 commit comments

Comments
 (0)