summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorPaulb23 <p_batty@hotmail.co.uk>2017-11-23 20:37:08 +0000
committerPaulb23 <p_batty@hotmail.co.uk>2017-11-23 20:37:08 +0000
commitf6f475e6ba1b52baeacdaf9aa92960650a828dfc (patch)
tree0047aaddb747e8872b98b920c301ee16fdfbaaa8 /scene/gui
parent3a33725014169ce51d6ac581a4dce3b97a60da00 (diff)
Fixed not be able to unfold the last line
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/text_edit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index 26ac4c5a7d..b5e809fd03 100644
--- a/scene/gui/text_edit.cpp
+++ b/scene/gui/text_edit.cpp
@@ -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;