[gnome-characters] characterList: Fix creation of search keywords



commit 6a05020441bc94d4931ab49d20b6ddfe03551ab5
Author: Daiki Ueno <dueno src gnome org>
Date:   Wed Oct 4 15:36:18 2017 +0200

    characterList: Fix creation of search keywords
    
    https://bugzilla.gnome.org/show_bug.cgi?id=788356

 src/characterList.js |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/characterList.js b/src/characterList.js
index a623ff9..b65e8ed 100644
--- a/src/characterList.js
+++ b/src/characterList.js
@@ -615,8 +615,11 @@ var CharacterListView = new Lang.Class({
     },
 
     searchByKeywords: function(keywords) {
-        let criteria = Gc.SearchCriteria.new_keywords(keywords, Gc.SearchFlag.NONE);
-        this._searchContext = new Gc.SearchContext({ criteria: criteria });
+        let criteria = Gc.SearchCriteria.new_keywords(keywords);
+        this._searchContext = new Gc.SearchContext({
+            criteria: criteria,
+            flags: Gc.SearchFlag.WORD
+        });
         this._searchWithContext(this._searchContext, this.initialSearchCount);
     },
 


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