diff options
author | Paulb23 <p_batty@hotmail.co.uk> | 2016-03-07 02:32:51 +0000 |
---|---|---|
committer | Paulb23 <p_batty@hotmail.co.uk> | 2016-03-07 02:32:51 +0000 |
commit | f19eea2f2d01cdfd671f16436eb639b46908b150 (patch) | |
tree | fc6ca163a85df405d7d8517af7a7c6e309eafd44 /scene/gui/text_edit.h | |
parent | a283d367a7cb54807e8c2e6015167feca9f604d1 (diff) |
Enabled scrolling past end of file
Diffstat (limited to 'scene/gui/text_edit.h')
-rw-r--r-- | scene/gui/text_edit.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/gui/text_edit.h b/scene/gui/text_edit.h index 44e780aaf3..8d0efc406a 100644 --- a/scene/gui/text_edit.h +++ b/scene/gui/text_edit.h @@ -211,6 +211,7 @@ class TextEdit : public Control { bool undo_enabled; bool line_numbers; + bool scroll_past_end_of_file_enabled; bool auto_brace_completion_enabled; bool brace_matching_enabled; bool auto_indent; @@ -322,6 +323,10 @@ public: void set_line(int line, String new_text); void backspace_at_cursor(); + inline void set_scroll_pass_end_of_file(bool p_enabled) { + scroll_past_end_of_file_enabled = p_enabled; + update(); + } inline void set_auto_brace_completion(bool p_enabled) { auto_brace_completion_enabled = p_enabled; } |