summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-11-02 19:27:51 +0100
committerGitHub <noreply@github.com>2019-11-02 19:27:51 +0100
commit0a9df181af2281eedc2f481caec505fd746b71df (patch)
treedc63e41266a3376b3324cd0cf8e4c8b2e639e6d3 /scene
parent7210bed2b123865555fad25ed5420a8345513a43 (diff)
parent362d38ea675f56cf56230605dd5ff6114c6bb2af (diff)
Merge pull request #33268 from Paulb23/33128_connection_info_validate
Update connection info on script validation rather then saved copy
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/text_edit.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index 5e6e038f38..c818633f48 100644
--- a/scene/gui/text_edit.cpp
+++ b/scene/gui/text_edit.cpp
@@ -3928,7 +3928,9 @@ void TextEdit::_base_insert_text(int p_line, int p_char, const String &p_text, i
if (shift_first_line) {
text.set_breakpoint(p_line + 1, text.is_breakpoint(p_line));
text.set_hidden(p_line + 1, text.is_hidden(p_line));
- text.set_info_icon(p_line + 1, text.get_info_icon(p_line), text.get_info(p_line));
+ if (text.has_info_icon(p_line)) {
+ text.set_info_icon(p_line + 1, text.get_info_icon(p_line), text.get_info(p_line));
+ }
text.set_breakpoint(p_line, false);
text.set_hidden(p_line, false);