[gnome-builder] editor: Fix Ctrl+(Shift+)g not wrapping around search with entry focused



commit c2d0236bedd376a08defbb7c254ec2ce834167e1
Author: vanadiae <vanadiae35 gmail com>
Date:   Fri Aug 6 19:33:00 2021 +0200

    editor: Fix Ctrl+(Shift+)g not wrapping around search with entry focused
    
    Backward and forward search direction don't wrap around as said by the
    documentation. Only next and previous wrap around.
    
    Fixes #1396

 src/libide/editor/ide-editor-search-bar.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libide/editor/ide-editor-search-bar.c b/src/libide/editor/ide-editor-search-bar.c
index 614208503..b27499bc3 100644
--- a/src/libide/editor/ide-editor-search-bar.c
+++ b/src/libide/editor/ide-editor-search-bar.c
@@ -233,7 +233,7 @@ search_entry_previous_match (IdeEditorSearchBar *self,
     {
       ide_editor_search_set_extend_selection (self->search, IDE_EDITOR_SEARCH_SELECT_NONE);
       ide_editor_search_set_repeat (self->search, 0);
-      ide_editor_search_move (self->search, IDE_EDITOR_SEARCH_BACKWARD);
+      ide_editor_search_move (self->search, IDE_EDITOR_SEARCH_PREVIOUS);
     }
 }
 
@@ -248,7 +248,7 @@ search_entry_next_match (IdeEditorSearchBar *self,
     {
       ide_editor_search_set_extend_selection (self->search, IDE_EDITOR_SEARCH_SELECT_NONE);
       ide_editor_search_set_repeat (self->search, 0);
-      ide_editor_search_move (self->search, IDE_EDITOR_SEARCH_FORWARD);
+      ide_editor_search_move (self->search, IDE_EDITOR_SEARCH_NEXT);
     }
 }
 


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