summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarian <marian.sabat@centrum.sk>2019-10-25 16:14:24 +0200
committerMarian <marian.sabat@centrum.sk>2019-10-25 16:14:24 +0200
commit3322d19cb367238e79d60e5cd4d5c3434089ea5c (patch)
treec00ac7f0bd87104773feb075bc21f86209d2b4f3
parent616f02e90576c899e34e9810d2dcbfa606abd4b6 (diff)
Just initialization, needed by compiler
-rw-r--r--scene/gui/text_edit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index 738cd4f988..2c20541e79 100644
--- a/scene/gui/text_edit.cpp
+++ b/scene/gui/text_edit.cpp
@@ -2852,8 +2852,8 @@ void TextEdit::_gui_input(const Ref<InputEvent> &p_gui_input) {
const Map<int, Text::ColorRegionInfo> &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];