[gnome-builder] sourceview: cancel completion when moving snippets
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] sourceview: cancel completion when moving snippets
- Date: Thu, 21 Jun 2018 22:29:27 +0000 (UTC)
commit b968c0361fc43dd682d83ec1234eb75b4362eb5b
Author: Christian Hergert <chergert redhat com>
Date: Thu Jun 21 15:28:44 2018 -0700
sourceview: cancel completion when moving snippets
src/libide/sourceview/ide-source-view.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/libide/sourceview/ide-source-view.c b/src/libide/sourceview/ide-source-view.c
index e6c8325c5..d72e36cb2 100644
--- a/src/libide/sourceview/ide-source-view.c
+++ b/src/libide/sourceview/ide-source-view.c
@@ -2101,6 +2101,8 @@ ide_source_view_key_press_event (GtkWidget *widget,
ide_source_view_block_handlers (self);
if (!ide_snippet_move_next (snippet))
ide_source_view_pop_snippet (self);
+ ide_completion_cancel (priv->completion);
+ /* TODO: ask snippet if we should auto-display completion options? */
ide_source_view_scroll_to_insert (self);
ide_source_view_unblock_handlers (self);
ret = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]