You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fixed not be able to unfold the last line
This commit is contained in:
@@ -4536,7 +4536,7 @@ bool TextEdit::can_fold(int p_line) const {
|
||||
bool TextEdit::is_folded(int p_line) const {
|
||||
|
||||
ERR_FAIL_INDEX_V(p_line, text.size(), false);
|
||||
if (p_line + 1 >= text.size() - 1)
|
||||
if (p_line + 1 >= text.size())
|
||||
return false;
|
||||
if (!is_line_hidden(p_line) && is_line_hidden(p_line + 1))
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user