Commit 59ade00b authored by Florian Müllner's avatar Florian Müllner Committed by Florian Müllner

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.

parent de78ed98
......@@ -266,7 +266,8 @@ const SystemActions = GObject.registerClass({
getMatchingActions(terms) {
// terms is a list of strings
terms = => GLib.str_tokenize_and_fold(term, null)[0]);
terms =
term => GLib.str_tokenize_and_fold(term, null)[0]).flat(2);
let results = [];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment