diff options
| author | Maxime Coste <mawww@kakoune.org> | 2024-02-28 12:34:20 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2024-02-28 12:34:20 +1100 |
| commit | e52f83bd50b8d08fb85ef4de9b2234b440840e4d (patch) | |
| tree | fcc7d9bf8dd85c799c89c66c342a5bde77da093c /src | |
| parent | 9a299b001607df2fc846fe8d1a5ee90cbb9e8332 (diff) | |
Fix shell command completion fallback to filename
Diffstat (limited to 'src')
| -rw-r--r-- | src/file.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file.cc b/src/file.cc index 56d7b027..be298964 100644 --- a/src/file.cc +++ b/src/file.cc @@ -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()); |
