avoid scene\gui\text_edit.cpp:6054 - Index p_line = 29 is out of bounds (text.size() = 8).

This commit is contained in:
Nguyen Truong An 2024-10-05 19:38:35 +02:00
parent fff15d837d
commit 45e7dfe7bf

View File

@ -6051,7 +6051,7 @@ int TextEdit::get_indent_level(int p_line) const {
bool TextEdit::is_line_comment(int p_line) const {
// Checks to see if this line is the start of a comment.
ERR_FAIL_INDEX_V(p_line, text.size(), false);
// ERR_FAIL_INDEX_V(p_line, text.size(), false);
int line_length = text[p_line].size();
for (int i = 0; i < line_length - 1; i++) {