From 3322d19cb367238e79d60e5cd4d5c3434089ea5c Mon Sep 17 00:00:00 2001 From: Marian Date: Fri, 25 Oct 2019 16:14:24 +0200 Subject: [PATCH] Just initialization, needed by compiler --- scene/gui/text_edit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 738cd4f9883..2c20541e794 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -2852,8 +2852,8 @@ void TextEdit::_gui_input(const Ref &p_gui_input) { const Map &cri_map = text.get_color_region_info(cursor.line); bool indent_char_found = false; bool should_indent = false; - char indent_char; - char c; + char indent_char = ':'; + char c = text[cursor.line][cursor.column]; for (int i = 0; i < cursor.column; i++) { c = text[cursor.line][i];