[gnome-builder] completion: explicitly ignore insert-text during loading



commit 49288b6ff3036a2a85dd2d9b19fbc7d68795b1c4
Author: Christian Hergert <chergert redhat com>
Date:   Mon Jun 25 12:02:36 2018 -0700

    completion: explicitly ignore insert-text during loading
    
    We don't need to care about delete-text since that shouldn't be happening
    while loading.

 src/libide/completion/ide-completion.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/libide/completion/ide-completion.c b/src/libide/completion/ide-completion.c
index 4cc40956b..cccf7ccfa 100644
--- a/src/libide/completion/ide-completion.c
+++ b/src/libide/completion/ide-completion.c
@@ -716,6 +716,9 @@ ide_completion_buffer_insert_text_after_cb (IdeCompletion *self,
   g_assert (len > 0);
   g_assert (GTK_IS_TEXT_BUFFER (buffer));
 
+  if (ide_buffer_get_loading (IDE_BUFFER (buffer)))
+    return;
+
   dzl_clear_source (&self->queued_update);
 
   if (ide_completion_is_blocked (self) || !is_single_char (text, len))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]