diff options
author | Guilherme Felipe <guilhermefelipecgs@gmail.com> | 2018-09-11 13:25:40 -0300 |
---|---|---|
committer | Guilherme Felipe <guilhermefelipecgs@gmail.com> | 2018-09-12 13:26:51 -0300 |
commit | 51e854846e4478167fce6b8408c3452181596fd0 (patch) | |
tree | e268494dca06b4eea1f6c1837d0e3361d61cb2ce /scene/gui/text_edit.cpp | |
parent | 06667b2fcfcf130a9b9e8974c1c7ac0c9ae1de0a (diff) |
Fix default_cursor_shape for TextEdit
Diffstat (limited to 'scene/gui/text_edit.cpp')
-rw-r--r-- | scene/gui/text_edit.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 0eaeea9627..f56cc897ca 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -4174,7 +4174,7 @@ Control::CursorShape TextEdit::get_cursor_shape(const Point2 &p_pos) const { } } - return CURSOR_IBEAM; + return get_default_cursor_shape(); } void TextEdit::set_text(String p_text) { @@ -6256,6 +6256,7 @@ TextEdit::TextEdit() { breakpoint_gutter_width = 0; cache.fold_gutter_width = 0; fold_gutter_width = 0; + set_default_cursor_shape(CURSOR_IBEAM); indent_size = 4; text.set_indent_size(indent_size); |