summaryrefslogtreecommitdiffstats
path: root/editor/code_editor.cpp
diff options
context:
space:
mode:
authorPaulo Gomes <tuga3d@gmail.com>2017-09-06 02:02:51 +0100
committerPaulo Gomes <tuga3d@gmail.com>2017-09-06 19:23:09 +0100
commit9b72f0804268b99b341c0c700cdac5617162216d (patch)
tree4c2624cd01ea038ad99302640bea1a3498012854 /editor/code_editor.cpp
parent0b8fa1e01068af9924742ade2625e021ccd2c5a8 (diff)
downloadredot-engine-9b72f0804268b99b341c0c700cdac5617162216d.tar.gz
second take at autocomplete logic, using a TextOperation check.
Diffstat (limited to 'editor/code_editor.cpp')
-rw-r--r--editor/code_editor.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp
index 8c153d2745..5dd8b8a800 100644
--- a/editor/code_editor.cpp
+++ b/editor/code_editor.cpp
@@ -1023,8 +1023,10 @@ void CodeTextEditor::_line_col_changed() {
void CodeTextEditor::_text_changed() {
- code_complete_timer->start();
- idle->start();
+ if (text_editor->is_insert_text_operation()) {
+ code_complete_timer->start();
+ idle->start();
+ }
}
void CodeTextEditor::_code_complete_timer_timeout() {