Skip to content

Commit 6efa9d1

Browse files
Only expand environment var when path starts with %
1 parent 2e4127c commit 6efa9d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ private async Task<List<Result>> PathSearchAsync(Query query, CancellationToken
175175
return EnvironmentVariables.GetEnvironmentStringPathSuggestions(querySearch, query, Context);
176176

177177
// Query is a location path with a full environment variable, eg. %appdata%\somefolder\
178-
var isEnvironmentVariablePath = querySearch[1..].Contains("%\\");
178+
var isEnvironmentVariablePath = querySearch[0] == '%' && querySearch[1..].Contains("%\\");
179179

180180
var locationPath = querySearch;
181181

0 commit comments

Comments
 (0)