Fix shell command completion fallback to filename
This commit is contained in:
parent
9a299b0016
commit
e52f83bd50
|
@ -564,7 +564,7 @@ CandidateList complete_command(StringView prefix, ByteCount cursor_pos)
|
||||||
Vector<RankedMatch> matches;
|
Vector<RankedMatch> matches;
|
||||||
for (auto& file : files)
|
for (auto& file : files)
|
||||||
{
|
{
|
||||||
if (RankedMatch match{file, real_prefix})
|
if (RankedMatch match{file, fileprefix})
|
||||||
matches.push_back(match);
|
matches.push_back(match);
|
||||||
}
|
}
|
||||||
std::sort(matches.begin(), matches.end());
|
std::sort(matches.begin(), matches.end());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user