From e52f83bd50b8d08fb85ef4de9b2234b440840e4d Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 28 Feb 2024 12:34:20 +1100 Subject: [PATCH] Fix shell command completion fallback to filename --- src/file.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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());