[gnome-shell/gnome-3-36] systemActions: Flatten folded search terms
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-36] systemActions: Flatten folded search terms
- Date: Wed, 7 Oct 2020 18:29:22 +0000 (UTC)
commit a1ca2a8539dc8d948eabe1ff4974294215f25d5c
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 4f28a72f0f..43f1de4a51 100644
--- a/js/misc/systemActions.js
+++ b/js/misc/systemActions.js
@@ -281,7 +281,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]