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;
|
||||
for (auto& file : files)
|
||||
{
|
||||
if (RankedMatch match{file, real_prefix})
|
||||
if (RankedMatch match{file, fileprefix})
|
||||
matches.push_back(match);
|
||||
}
|
||||
std::sort(matches.begin(), matches.end());
|
||||
|
|
Loading…
Reference in New Issue
Block a user