From cfa9b68fa9df9acb5e6d27d15af3cfb9380679b1 Mon Sep 17 00:00:00 2001 From: Nguyen Truong An Date: Sat, 5 Oct 2024 20:09:22 +0200 Subject: [PATCH] Update text_edit.cpp --- scene/gui/text_edit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index f2f3bd1a5..4b9f0012e 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -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++) {