Update text_edit.cpp

This commit is contained in:
Nguyen Truong An 2024-10-05 20:09:22 +02:00
parent 45e7dfe7bf
commit cfa9b68fa9

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(), true);
int line_length = text[p_line].size();
for (int i = 0; i < line_length - 1; i++) {