[gnome-builder/wip/chergert/layout: 49/118] editor: don't update cursor position while loading
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/layout: 49/118] editor: don't update cursor position while loading
- Date: Wed, 5 Jul 2017 11:52:10 +0000 (UTC)
commit 894eb3f472c2d0b4a2c25155482155d22ba6ddc6
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]