aboutsummaryrefslogtreecommitdiff
path: root/scene/gui/text_edit.cpp
diff options
context:
space:
mode:
authorHein-Pieter van Braam2017-09-01 22:33:39 +0200
committerHein-Pieter van Braam2017-09-02 01:59:26 +0200
commit9c63ab99f0a505b0f60079bb30cc453b4415fddc (patch)
tree7014cb6e8c2e71a0583656f76d3d37d719a74fb0 /scene/gui/text_edit.cpp
parentdac150108ab3c1f41d5fd86cc6853f883064caaf (diff)
downloadgodot-9c63ab99f0a505b0f60079bb30cc453b4415fddc.tar.gz
godot-9c63ab99f0a505b0f60079bb30cc453b4415fddc.tar.zst
godot-9c63ab99f0a505b0f60079bb30cc453b4415fddc.zip
Diffstat (limited to 'scene/gui/text_edit.cpp')
-rw-r--r--scene/gui/text_edit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index 7b9339385..cd7e1b2ed 100644
--- a/scene/gui/text_edit.cpp
+++ b/scene/gui/text_edit.cpp
@@ -4531,7 +4531,7 @@ String TextEdit::get_word_at_pos(const Vector2 &p_pos) const {
bool symbol = beg < s.length() && _is_symbol(s[beg]); //not sure if right but most editors behave like this
bool inside_quotes = false;
- int qbegin, qend;
+ int qbegin = 0, qend = 0;
for (int i = 0; i < s.length(); i++) {
if (s[i] == '"') {
if (inside_quotes) {