aboutsummaryrefslogtreecommitdiff
path: root/scene/gui/text_edit.cpp
diff options
context:
space:
mode:
authorrobfram2018-03-06 19:25:14 +0100
committerrobfram2018-03-06 19:25:14 +0100
commit95f186b62184c846571c7278842ac4923f461d5a (patch)
tree7a22011cbb5b2283c57aadad05a6699656377512 /scene/gui/text_edit.cpp
parent4f1b87265e1e74b1fdd0aa0aa59a9daf03fd3f40 (diff)
downloadgodot-95f186b62184c846571c7278842ac4923f461d5a.tar.gz
godot-95f186b62184c846571c7278842ac4923f461d5a.tar.zst
godot-95f186b62184c846571c7278842ac4923f461d5a.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 95d9173d3..b8918d732 100644
--- a/scene/gui/text_edit.cpp
+++ b/scene/gui/text_edit.cpp
@@ -5232,7 +5232,7 @@ void TextEdit::_update_completion_candidates() {
} else {
- while (cofs > 0 && l[cofs - 1] > 32 && _is_completable(l[cofs - 1])) {
+ while (cofs > 0 && l[cofs - 1] > 32 && (l[cofs - 1] == '/' || _is_completable(l[cofs - 1]))) {
s = String::chr(l[cofs - 1]) + s;
if (l[cofs - 1] == '\'' || l[cofs - 1] == '"' || l[cofs - 1] == '$')
break;