summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-09-12 21:40:05 +0200
committerGitHub <noreply@github.com>2018-09-12 21:40:05 +0200
commit4cd3dd821932660a7d89d90da7626fa46c07ac39 (patch)
tree64a45c32ce23c8082ae59ae408fdab56ccd49792 /scene
parentfe78aa0c3096b0e74255ad1aaf0acf8a8befea58 (diff)
parent51e854846e4478167fce6b8408c3452181596fd0 (diff)
Merge pull request #21977 from guilhermefelipecgs/fix_text_edit
Fix default_cursor_shape for TextEdit
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/text_edit.cpp3
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);