[gnome-builder/wip/chergert/layout] editor: don't update cursor position while loading



commit e7a4b684b9337f0376e7b7823d282c989b5553a3
Author: Christian Hergert <chergert redhat com>
Date:   Fri Jun 30 20:03:05 2017 -0700

    editor: don't update cursor position while loading

 libide/editor/ide-editor-layout-stack-controls.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libide/editor/ide-editor-layout-stack-controls.c 
b/libide/editor/ide-editor-layout-stack-controls.c
index c74c17c..b553226 100644
--- a/libide/editor/ide-editor-layout-stack-controls.c
+++ b/libide/editor/ide-editor-layout-stack-controls.c
@@ -20,6 +20,8 @@
 
 #include <glib/gi18n.h>
 
+#include "ide-internal.h"
+
 #include "editor/ide-editor-layout-stack-controls.h"
 #include "editor/ide-editor-private.h"
 
@@ -45,6 +47,9 @@ document_cursor_moved (IdeEditorLayoutStackControls *self,
   if (self->view == NULL)
     return;
 
+  if (_ide_buffer_get_loading (IDE_BUFFER (buffer)))
+    return;
+
   source_view = ide_editor_view_get_view (self->view);
 
   ide_source_view_get_visual_position (source_view, &line, (guint *)&column);


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