mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
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
This commit is contained in:
parent
bc1d8b677d
commit
a1ca2a8539
1 changed files with 2 additions and 1 deletions
|
|
@ -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 = [];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue