File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Plugins/Flow.Launcher.Plugin.Sys Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -26,20 +26,21 @@ public List<Result> Query(Query query)
26
26
LoadThemes ( ) ;
27
27
}
28
28
29
- string search = query . Search [ ( query . Search . IndexOf ( Keyword , StringComparison . Ordinal ) + Keyword . Length + 1 ) ..] ;
29
+ int keywordIndex = query . Search . IndexOf ( Keyword , StringComparison . Ordinal ) ;
30
+ string search = query . Search [ ( keywordIndex + Keyword . Length + 1 ) ..] ;
30
31
31
32
if ( string . IsNullOrWhiteSpace ( search ) )
32
33
{
33
34
return themes . Select ( CreateThemeResult )
34
- . OrderBy ( x => x . Title )
35
- . ToList ( ) ;
35
+ . OrderBy ( x => x . Title )
36
+ . ToList ( ) ;
36
37
}
37
38
38
39
return themes . Select ( theme => ( theme , matchResult : context . API . FuzzySearch ( search , theme ) ) )
39
- . Where ( x => x . matchResult . IsSearchPrecisionScoreMet ( ) )
40
- . Select ( x => CreateThemeResult ( x . theme , x . matchResult . Score , x . matchResult . MatchData ) )
41
- . OrderBy ( x => x . Title )
42
- . ToList ( ) ;
40
+ . Where ( x => x . matchResult . IsSearchPrecisionScoreMet ( ) )
41
+ . Select ( x => CreateThemeResult ( x . theme , x . matchResult . Score , x . matchResult . MatchData ) )
42
+ . OrderBy ( x => x . Title )
43
+ . ToList ( ) ;
43
44
}
44
45
45
46
private void OnVisibilityChanged ( object sender , VisibilityChangedEventArgs args )
You can’t perform that action at this time.
0 commit comments