[gnome-shell] systemActions: Flatten folded search terms
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] systemActions: Flatten folded search terms
- Date: Mon, 14 Sep 2020 21:14:26 +0000 (UTC)
commit 59ade00b942c0a739e761166f0ee4a21fab034da
Author: Florian Müllner <fmuellner gnome org>
Date: Sat Sep 12 18:27:45 2020 +0200
systemActions: Flatten folded search terms
GLib.str_tokenize_and_fold() returns an array rather than a string
(the "tokenize" bit), so flatten the folded search terms like we
do for keywords.
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3169
js/misc/systemActions.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/js/misc/systemActions.js b/js/misc/systemActions.js
index e3b910a589..4c2f3a2905 100644
--- a/js/misc/systemActions.js
+++ b/js/misc/systemActions.js
@@ -266,7 +266,8 @@ const SystemActions = GObject.registerClass({
getMatchingActions(terms) {
// terms is a list of strings
- terms = terms.map(term => GLib.str_tokenize_and_fold(term, null)[0]);
+ terms = terms.map(
+ term => GLib.str_tokenize_and_fold(term, null)[0]).flat(2);
let results = [];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]