diff options
author | Paulb23 <p_batty@hotmail.co.uk> | 2019-11-02 13:38:25 +0000 |
---|---|---|
committer | Paulb23 <p_batty@hotmail.co.uk> | 2019-11-02 14:41:59 +0000 |
commit | 362d38ea675f56cf56230605dd5ff6114c6bb2af (patch) | |
tree | 1a37f0d8bd723309c8c9d5e0632b5150ffd5aaf1 /scene/gui/text_edit.cpp | |
parent | 4569f5ec82964e0abe543337c9537e0af9164c11 (diff) | |
download | redot-engine-362d38ea675f56cf56230605dd5ff6114c6bb2af.tar.gz |
Update connection info on script validation rather then saved copy
Diffstat (limited to 'scene/gui/text_edit.cpp')
-rw-r--r-- | scene/gui/text_edit.cpp | 4 |
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); |