From 9b72f0804268b99b341c0c700cdac5617162216d Mon Sep 17 00:00:00 2001 From: Paulo Gomes Date: Wed, 6 Sep 2017 02:02:51 +0100 Subject: second take at autocomplete logic, using a TextOperation check. --- editor/code_editor.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'editor/code_editor.cpp') diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp index 8c153d274..5dd8b8a80 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() { -- cgit v1.2.3-70-g09d2