[gnome-builder/wip/chergert/editorsearch] editor: clear repeat when entering interactive search



commit 26150cda0d354d7346cb9d4fc8b403c9d8b03164
Author: Christian Hergert <chergert redhat com>
Date:   Tue Oct 10 21:52:50 2017 -0700

    editor: clear repeat when entering interactive search

 src/libide/editor/ide-editor-search.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/libide/editor/ide-editor-search.c b/src/libide/editor/ide-editor-search.c
index c9f9bed..27f2dd3 100644
--- a/src/libide/editor/ide-editor-search.c
+++ b/src/libide/editor/ide-editor-search.c
@@ -1442,6 +1442,9 @@ ide_editor_search_begin_interactive (IdeEditorSearch *self)
   /* Disable reverse search when interactive */
   ide_editor_search_set_reverse (self, FALSE);
 
+  /* Clear any repeat that was previously set */
+  ide_editor_search_set_repeat (self, 0);
+
   /* Always highlight matches while in interactive mode */
   if (self->context != NULL)
     gtk_source_search_context_set_highlight (self->context, TRUE);


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