From c47ccc8a59bfa8f994a4572f10d57120bfc848a2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 15 Sep 2022 19:46:51 +0530 Subject: [PATCH] ... --- tools/completion/files.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/completion/files.go b/tools/completion/files.go index ee48ba136..be444a22f 100644 --- a/tools/completion/files.go +++ b/tools/completion/files.go @@ -43,7 +43,7 @@ func complete_files(prefix string, callback CompleteFilesCallback) error { return nil } completion_candidate := path - if strings.HasPrefix(completion_candidate, prefix) { + if strings.HasPrefix(completion_candidate, prefix) && completion_candidate != prefix { return callback(completion_candidate, abspath, d) } return nil